void (@NotNull PsiField field) { if (field.hasModifierProperty(PsiModifier.STATIC) || field.hasModifierProperty(PsiModifier.FINAL)) { return; } if (field.getInitializer() != null) { return; } if (NullableNotNullManager.isNullable(field)) { return; } if (m_ignorePrimitives) { final PsiType fieldType = field.getType(); if (ClassUtils.isPrimitive(fieldType)) { return; } } final PsiClass aClass = field.getContainingClass(); if (aClass == null) { return; } if (UnusedSymbolUtil.isImplicitWrite(field)) { return; } final boolean isTestClass = TestFrameworks.getInstance().isTestClass(aClass); if (isTestClass) { if (isInitializedInSetup(field, aClass)) { return; } } if (isInitializedInInitializer(field)) { return; } if (InitializationUtils.isInitializedInConstructors(field, aClass)) { return; } if (isTestClass) { registerFieldError(field, Boolean.TRUE); } else { registerFieldError(field, Boolean.FALSE); } }