private void setChildComponent(@NotNull Component childComponent) {
      Container parent = childComponent.getParent();
      if (parent != null) {
        parent.remove(childComponent);
      }
      removeAll();
      add(childComponent, BorderLayout.CENTER);
      revalidate();
    }
private void setChildComponent(@NotNull Component childComponent)