public static GroovyElementPattern.Capture<GrLiteralImpl> stringLiteral() {
    return new GroovyElementPattern.Capture<>(new InitialPatternCondition<>(GrLiteralImpl.class) {
      @Override
      public boolean accepts(@Nullable final Object o, final ProcessingContext context) {
        if (!(o instanceof GrLiteral)) return false;
        return ((GrLiteral)o).isString();
      }
    });
  }
public static GroovyElementPattern.Capture<GrLiteralImpl> stringLiteral()