Consider the following:
package foo;
public class Bar {
public static class Baz {
}
}
import foo.Bar
import foo.Bar.Baz
Bar.Baz baz = null
Organize Imports (Ctrl+Shift+O) should remove "import foo.Bar.Baz" because the reference is qualified by the outer class.
Consider the following:
Organize Imports (Ctrl+Shift+O) should remove "import foo.Bar.Baz" because the reference is qualified by the outer class.