Component () { if (!allowResize || !ui.isResizeable()) { return null; } Component component = c; Component parent = component.getParent(); while(parent != null) { if (parent instanceof ThreeComponentsSplitter && ((ThreeComponentsSplitter)parent).getOrientation()) { if (component != ((ThreeComponentsSplitter)parent).getFirstComponent()) { return parent; } } if (parent instanceof Splitter && ((Splitter)parent).isVertical() && ((Splitter)parent).getSecondComponent() == component && ((Splitter)parent).getFirstComponent() != null) { return parent; } if (parent instanceof ToolWindowPane) { return parent; } component = parent; parent = parent.getParent(); } return null; }