GroovyNamedArgumentPattern (@Nullable final ElementPattern<? extends GrCall> methodCall) { return with(new PatternCondition<>("left") { @Override public boolean accepts(@NotNull GrNamedArgument namedArgument, final ProcessingContext context) { GrCall call = PsiUtil.getCallByNamedParameter(namedArgument); return call != null && (methodCall == null || methodCall.accepts(call, context)); } }); }