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