void (@NotNull PsiField field) { super.visitField(field); if (!field.hasModifierProperty(PsiModifier.STATIC) || field.hasModifierProperty(PsiModifier.PRIVATE)) return; if (field instanceof PsiEnumConstant || isSingletonField(field)) return; if (DeclarationSearchUtils.isTooExpensiveToSearch(field, false)) { registerPossibleProblem(field.getNameIdentifier()); return; } final PsiClass usageClass = getUsageClass(field); if (usageClass == null) return; registerFieldError(field, field, usageClass); }