boolean (@NotNull PsiMethod method, int numberOfParameters) { int limit = JavaMethodCallElement.getCompletionHintsLimit(); int originalNumberOfParameters = method.getParameterList().getParametersCount(); return Registry.is("editor.completion.hints.virtual.comma") ? !PsiImplUtil.isVarArgs(method) && numberOfParameters > originalNumberOfParameters : PsiImplUtil.isVarArgs(method) ? originalNumberOfParameters > 2 && numberOfParameters < Math.min(limit, originalNumberOfParameters) - 1 && !(limit == 1 && numberOfParameters == 0) : (originalNumberOfParameters < numberOfParameters || numberOfParameters < Math.min(limit, originalNumberOfParameters)) && !(Math.min(limit, originalNumberOfParameters) == 1 && numberOfParameters == 0); }