boolean ( @NotNull PsiMethod method, @NonNls @Nullable String containingClassName, @Nullable PsiType returnType, @Nullable Pattern methodNamePattern, PsiType @Nullable ... parameterTypes) { if (methodNamePattern != null) { final String name = method.getName(); final Matcher matcher = methodNamePattern.matcher(name); if (!matcher.matches()) { return false; } } return methodMatches(method, containingClassName, returnType, parameterTypes); }