GroovyNamedArgumentPattern (@NotNull final StringPattern labelPattern) { return with(new PatternCondition<>("left") { @Override public boolean accepts(@NotNull GrNamedArgument namedArgument, final ProcessingContext context) { return labelPattern.accepts(namedArgument.getLabelName(), context); } }); }