List<PseudoMethod> (String name) { final List<PseudoMethod> result = new ArrayList<>(); for (PseudoMethod method : myMethods) { if (method.getName().equals(name)){ result.add(method); } } return result; }