void (@NotNull PsiField field) { super.visitField(field); final PsiType type = field.getType(); if (!InheritanceUtil.isInheritor(type, "java.lang.ThreadLocal")) { return; } final PsiModifierList modifierList = field.getModifierList(); if (modifierList == null) { return; } if (modifierList.hasModifierProperty(PsiModifier.STATIC) && modifierList.hasModifierProperty(PsiModifier.FINAL)) { return; } registerFieldError(field, field); }