public @NlsSafe String getOptimalTextForComponent(File file, JComponent component, int width) {
    return getOptimalTextForComponent("", file, component, width);
  }
public @NlsSafe String getOptimalTextForComponent(File file, JComponent component, int width)