void (@NotNull PsiClass aClass) { if (aClass.getContainingClass() != null && !aClass.hasModifierProperty(PsiModifier.STATIC) || PsiUtil.isLocalOrAnonymousClass(aClass)) { if (!HighlightingFeature.INNER_STATICS.isAvailable(aClass)) { return; } } for (PsiClass innerClass : aClass.getInnerClasses()) { if (innerClass.hasModifierProperty(PsiModifier.STATIC)) { continue; } if (AnnotationUtil.isAnnotated(innerClass, ignorableAnnotations, 0)) { continue; } final InnerClassReferenceVisitor visitor = new InnerClassReferenceVisitor(innerClass); innerClass.accept(visitor); if (!visitor.canInnerClassBeStatic()) { continue; } registerClassError(innerClass, innerClass); } }