void (InputTool tool) { if (getActiveTool() instanceof CreationTool && !(tool instanceof CreationTool)) { getPaletteToolWindow().clearActiveItem(); } if (!(tool instanceof SelectionTool)) { hideInspections(); } super.setActiveTool(tool); }