public static void restoreWidth(@NotNull Function<? super String, String> map, TableColumnModel columns) {
    for (int index = 0; true; index++) {
      String widthValue = map.fun(widthPropertyName(index));
      if (widthValue == null) {
        break;
      }

      try {
        columns.getColumn(index).setPreferredWidth(Integer.parseInt(widthValue));
      }
      catch (NumberFormatException e) {
        LOG.error("Bad width: " + widthValue + " at column: " + index + " from: " + map, e);
      }
    }
  }
public static void restoreWidth(@NotNull Function<? super String, String> map, TableColumnModel columns)