public static void showWindowActions(@NotNull Disposable parent, @NotNull Component contentPane) {
    Disposable tb = showWindowActions(contentPane);
    if (tb != null) {
      Disposer.register(parent, tb);
    }
  }
public static void showWindowActions(@NotNull Disposable parent, @NotNull Component contentPane)