Collection<EncapsulatableClassMember> (PsiClass psiClass) { if (psiClass.getLanguage() != JavaLanguage.INSTANCE) return Collections.emptyList(); final List<EncapsulatableClassMember> result = new ArrayList<>(); for (PsiField field : psiClass.getFields()) { if (!(field instanceof PsiEnumConstant)) { result.add(new PsiFieldMember(field)); } } return result; }