@Override
  protected Result calculateResult(Expression @NotNull [] params, ExpressionContext context, boolean quick) {
    if (params.length == 2) {
      String string = getTextResult(params[0], context);
      if (string == null) {
        return null;
      }
      String delimiter = getTextResult(params[1], context);
      if (delimiter == null) {
        return null;
      }
      int indexOf = string.indexOf(delimiter);
      return new TextResult(indexOf > 0 ? string.substring(0, indexOf) : "");
    }
    return null;
  }
@Override
  protected Result calculateResult(Expression @NotNull [] params, ExpressionContext context, boolean quick)