T (PsiMethod method) { if (method == null) return null; List<CallHandler<T>> functions = myMap.get(method.getName()); if (functions == null) return null; for (CallHandler<T> function : functions) { T t = function.applyMethod(method); if (t != null) { return t; } } return null; }