boolean (@NotNull PsiClass psiClass, @NotNull String fieldName) { final Collection<PsiField> psiFields = PsiClassUtil.collectClassFieldsIntern(psiClass); for (PsiField psiField : psiFields) { if (fieldName.equals(psiField.getName())) { return true; } } return false; }