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