Graphics2D (@NotNull JComponent c, @NotNull Graphics2D g) { Graphics2D original = MyGraphics.unwrap(g); if (c instanceof EditorsSplitters) { return withFrameBackground(original, c); } Editor editor = obtainEditor(c); if (editor != null) { if (c instanceof EditorComponentImpl && ((EditorImpl)editor).isDumb()) return original; } Graphics2D gg = withEditorBackground(original, c); if (gg instanceof MyGraphics) { ((MyGraphics)gg).preserved = editor != null ? getEditorPreserveColorCondition((EditorEx)editor) : getGeneralPreserveColorCondition(c); } return gg; }