boolean (@NotNull Collection<PsiMethod> classMethods, @NotNull String methodName, int paramCount) { return classMethods.stream() .filter(m -> methodName.equalsIgnoreCase(m.getName())) .anyMatch(m -> acceptedParameterCount(m, paramCount)); }