void (@NotNull PsiField field) { final String propertyName = PropertyUtilBase.suggestPropertyName(field); final boolean isStatic = field.hasModifierProperty(PsiModifier.STATIC); final PsiClass containingClass = field.getContainingClass(); final PsiMethod setter = PropertyUtilBase.findPropertySetter(containingClass, propertyName, isStatic, false); if (setter == null) { return; } final PsiMethod getter = PropertyUtilBase.findPropertyGetter(containingClass, propertyName, isStatic, false); if (getter != null) { return; } registerFieldError(field); }