boolean (@NotNull PsiClass aClass) { PsiClass containingClass = aClass.getContainingClass(); // when importing inner class, the reference might be qualified with the outer class name, and it can be confusing return containingClass != null && !CodeStyle.getSettings(myContainingFile).getCustomSettings(JavaCodeStyleSettings.class).INSERT_INNER_CLASS_IMPORTS; }