boolean (@NotNull JTree tree) { TreeUI ui = tree.getUI(); return ui instanceof WideSelectionTreeUI && ((WideSelectionTreeUI)ui).isWideSelection() || ui != null && ui.getClass().getName().equals("com.intellij.ui.tree.ui.DefaultTreeUI"); }