Checks for redundant import statements. An import statement is considered redundant if:
- It is a duplicate of another import. This is, when a class is imported more than once.
- The class imported is from the java.lang package, e.g. importing java.lang.String.
- The class imported is from the same package.