boolean (@NotNull Window window, @NotNull String windowId, @Nullable Runnable moveTabToNewWindowCallback) { MethodInvocator invocator = getTabbingModeInvocator(); if (invocator != null) { invocator.invoke(window); ((RootPaneContainer)window).getRootPane().putClientProperty("JavaWindowTabbingIdentifier", windowId); if (moveTabToNewWindowCallback != null) { try { new MethodInvocator(false, Class.forName("java.awt.Window"), "setMoveTabToNewWindowCallback", Runnable.class) .invoke(window, moveTabToNewWindowCallback); } catch (ClassNotFoundException e) { LOG.error(e); } } LOG.info("=== TabbingMode: on ==="); return true; } LOG.info("=== TabbingMode: off ==="); return false; }