private boolean isBothComponentsVisibleAndOneOfComponentsShowing() {
    if (isShowing()) return true;

    if (mySplitter instanceof JBSplitter) {
      JComponent first = ((JBSplitter)mySplitter).getFirstComponent();
      JComponent second = ((JBSplitter)mySplitter).getSecondComponent();
      if (first == null || second == null || !first.isVisible() || !second.isVisible()) return false;
      if (first.isShowing()) return true;
      if (second.isShowing()) return true;
    }
    return false;
  }
private boolean isBothComponentsVisibleAndOneOfComponentsShowing()