boolean (PsiClass psiClass) { if (psiClass.getContainingClass() == null) { return false; } return psiClass.hasModifierProperty(PsiModifier.PRIVATE) || !psiClass.hasModifierProperty(PsiModifier.STATIC) || PsiUtil.isLocalClass(psiClass); }