void (@Nullable Project project, @NotNull Component c) { InspectorWindow window = new InspectorWindow(project, c, this); Disposer.register(this, window); if (DimensionService.getInstance().getSize(InspectorWindow.getDimensionServiceKey(), null) == null) { window.pack(); } window.setVisible(true); window.toFront(); }