Set<String> (boolean inherited, @NotNull TypeEvalContext context) { final Set<String> result = new LinkedHashSet<>(); for (PsiMethod method : myClass.getAllMethods()) { result.add(method.getName()); } for (PsiField field : myClass.getAllFields()) { result.add(field.getName()); } if (inherited) { for (PyClassLikeType type : getAncestorTypes(context)) { if (type != null) { result.addAll(type.getMemberNames(false, context)); } } } return result; }