List<MethodElement> (Collection<? extends PsiMember> members) { List<MethodElement> methodElementList = new ArrayList<>(); for (PsiMember member : members) { if (member instanceof PsiMethod method) { MethodElement me = ElementFactory.newMethodElement(method); methodElementList.add(me); } } return methodElementList; }