PsiMethod (final PsiClass psiClass, final String methodName, @Nullable final AbstractMethodParams methodParameters) { if (psiClass == null || methodName == null) return null; return ContainerUtil.find(psiClass.findMethodsByName(methodName, true), object -> methodParamsMatchSignature(methodParameters, object)); }