@Override
  public @NotNull String getShortText(NamedScriptableDefinition variable) {
    if (!(variable instanceof MatchVariableConstraint constraint)) {
      return "";
    }
    final int minCount = constraint.getMinCount();
    final int maxCount = constraint.getMaxCount();
    if (minCount == 1 && maxCount == 1) {
      return "";
    }
    return SSRBundle.message("min.occurs.tooltip.message", minCount, (maxCount == Integer.MAX_VALUE) ? "∞" : maxCount);
  }


@Override
  public @NotNull String getShortText(NamedScriptableDefinition variable)