@Nullable
  public static String getTextResult(Expression @NotNull [] params, final ExpressionContext context, boolean useSelection) {
    if (params.length == 1) {
      Result result = params[0].calculateResult(context);
      if (result == null && useSelection) {
        final String property = context.getProperty(ExpressionContext.SELECTION);
        if (property != null) {
          result = new TextResult(property);
        }
      }
      return result == null ? null : result.toString();
    }
    return null;
  }
@Nullable
  public static String getTextResult(Expression @NotNull [] params, final ExpressionContext context, boolean useSelection)