public static void setPreferredWidthToFitText(@NotNull JTextField textField, @NotNull String text) {
    setPreferredSizeToFitText(textField, text, JBUIScale.scale(15));
  }
public static void setPreferredWidthToFitText(@NotNull JTextField textField, @NotNull String text)