Example:
import foo.Foo.Bar; class Foo { class Bar {} } class Baz { void f(Bar bar) {} }
After the quick-fix is applied:
class Foo { class Bar {} } class Baz { void f(Foo.Bar bar) {} }
Use the inspection settings to ignore references to inner classes within the same class, which therefore do not require an import.