Collection<PsiField> (@NotNull PsiClass psiClass) { if (psiClass instanceof PsiExtensibleClass) { return ((PsiExtensibleClass) psiClass).getOwnFields(); } else { return filterPsiElements(psiClass, PsiField.class); } }