public static void setPreferredWidthToFitText(@NotNull JTextField textField, int additionalWidth) {
    setPreferredSizeToFitText(textField, StringUtil.notNullize(textField.getText()), additionalWidth);
  }
public static void setPreferredWidthToFitText(@NotNull JTextField textField, int additionalWidth)