private void removePainter(@NotNull JRootPane rootPane) {
        Component glassPane = rootPane.getGlassPane();
        if (glassPane instanceof IdeGlassPane) {
            Disposer.dispose(disposable);
            disposable = null;
            glassPane.repaint();
        } else if (glassPane instanceof ThiefGlassPane) {
            Component realGlassPane = ((ThiefGlassPane) glassPane).getRealGlassPane();
            rootPane.setGlassPane(realGlassPane);
            realGlassPane.revalidate();
        } else {
            Disposer.dispose(disposable);
            disposable = null;
            LOG.warn("GlassPane may be only IdeGlassPane or ThiefGlassPane ancestor but found " + glassPane);
        }
    }
private void removePainter(@NotNull JRootPane rootPane)