public static void setPreferredWidthToFitText(@NotNull TextFieldWithBrowseButton component) {
    int childWidth = calcWidthToFitText(component.getChildComponent(), JBUIScale.scale(20));
    setPreferredWidthForComponentWithBrowseButton(component, childWidth);
  }
public static void setPreferredWidthToFitText(@NotNull TextFieldWithBrowseButton component)