boolean (@NotNull PsiMethodReferenceExpression methodRef, @Nullable MethodSignature signature, boolean varArgs, boolean isStatic, int parametersCount) { if (signature == null) { return false; } final QualifierResolveResult qualifierResolveResult = getQualifierResolveResult(methodRef); final PsiType[] functionalMethodParameterTypes = signature.getParameterTypes(); return (parametersCount + 1 == functionalMethodParameterTypes.length && !varArgs || varArgs && functionalMethodParameterTypes.length > 0 && !isStatic) && isSecondSearchPossible(functionalMethodParameterTypes, qualifierResolveResult, methodRef); }