ClassMember[] (PsiClass aClass) { PsiField[] fields = aClass.getFields(); ArrayList<ClassMember> array = new ArrayList<>(); for (PsiField field : fields) { if (field.hasModifierProperty(PsiModifier.STATIC)) continue; if (field.hasModifierProperty(PsiModifier.FINAL) && field.getInitializer() != null) continue; array.add(new PsiFieldMember(field)); } return array.toArray(ClassMember.EMPTY_ARRAY); }