public static void setFutureRootPane(@NotNull JComponent c, @NotNull JRootPane pane) {
    c.putClientProperty(ROOT_PANE, new WeakReference<>(pane));
  }
public static void setFutureRootPane(@NotNull JComponent c, @NotNull JRootPane pane)