boolean (PsiMethodCallExpression call) { if (call == null) return false; String name = call.getMethodExpression().getReferenceName(); if (name == null || !myNames.contains(name)) return false; PsiExpression[] args = call.getArgumentList().getExpressions(); if (myParameters != null && myParameters.length > 0) { if (args.length < myParameters.length - 1) return false; } PsiMethod method = call.resolveMethod(); if (method == null) return false; PsiParameterList parameterList = method.getParameterList(); int count = parameterList.getParametersCount(); if (count > args.length + 1 || (!MethodCallUtils.isVarArgCall(call) && count != args.length)) { return false; } return methodMatches(method); }