docs: public static int getCatalogIndexSize(Index index) {
          int indexSize = 0;
          String jsonstring = index.getExpressionsjson();
  
          if (jsonstring.isEmpty()) {
              indexSize = getSortedCatalogItems(index.getColumns(), "index").size();
          } else {
              try {
                  indexSize = AbstractExpression.fromJSONArrayString(jsonstring, null).size();
              } catch (JSONException e) {
                  e.printStackTrace();
              }
          }
  
          return indexSize;
      }