private static @Nullable Splitter getParentSplitter(@Nullable TerminalWrapperPanel panel) {
    return panel != null ? ObjectUtils.tryCast(panel.getParent(), Splitter.class) : null;
  }
private static @Nullable Splitter getParentSplitter(@Nullable TerminalWrapperPanel panel)