PsiMethod (final PsiClass psiClass, final String propertyName, final PsiType propertyType) { final String getterName = PropertyUtilBase.suggestGetterName(propertyName, propertyType); final PsiMethod[] getters = psiClass.findMethodsByName(getterName, true); for (PsiMethod getter : getters) { if (getter.hasModifierProperty(PsiModifier.PUBLIC) && !getter.hasModifierProperty(PsiModifier.STATIC) && PropertyUtilBase.isSimplePropertyGetter(getter)) { return getter; } } return null; }