PsiMethod (final Collection<PsiMethod> definedMethods, final String methodName, final List<PsiType> paramTypes) { for (PsiMethod method : definedMethods) { if (PsiElementUtil.methodMatches(method, null, null, methodName, paramTypes)) { return method; } } return null; }