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