void (@NotNull JPanel root, String tmp, @NotNull Disposable disposable) { PainterHelper paintersHelper = new PainterHelper(root); PainterHelper.initWallpaperPainter(tmp, paintersHelper); Disposer.register(disposable, JBSwingUtilities.addGlobalCGTransform((t, v) -> { if (!UIUtil.isAncestor(root, t)) return v; return MyGraphics.wrap(v, paintersHelper, t); })); }