boolean (@NotNull GrCall call) { if (CompileStaticUtil.isCompileStatic(call) || call.hasClosureArguments()) { return false; } var argumentList = call.getArgumentList(); if (argumentList == null || !argumentList.isEmpty()) { return false; } GroovyResolveResult result = call.advancedResolve(); if (!(result instanceof GroovyMethodResult)) { return false; } GroovyMethodCandidate candidate = ((GroovyMethodResult)result).getCandidate(); if (candidate == null) { return false; } return candidate.getArgumentMapping() instanceof NullArgumentMapping<?>; }