PsiMethod (PsiField field) { final PsiClass containingClass = field.getContainingClass(); final String propertyName = field.getName(); final boolean isStatic = field.hasModifierProperty(PsiModifier.STATIC); return findPropertySetter(containingClass, propertyName, isStatic, true); }