boolean (@NotNull PsiField field, @NotNull PsiMethod method) { if (field.hasModifierProperty(PsiModifier.STATIC)) { return true; } if (field.hasModifierProperty(PsiModifier.FINAL) && field.getInitializer() != null) { return true; } return InitializationUtils.methodAssignsVariableOrFails(method, field); }