PsiMethod (@NotNull PsiClass psiClass, @Nullable String propertyName) { if (StringUtil.isEmpty(propertyName)) return null; PsiMethod getter = findPropertyGetter(psiClass, propertyName, null); if (getter != null) { return getter; } return findPropertyGetter(psiClass, propertyName, PsiTypes.booleanType()); }