void (@NotNull EditorSchemeAttributeDescriptor descriptor) { if (!(myPreviewPanel instanceof SimpleEditorPreview && myPage instanceof RainbowColorSettingsPage)) return; UIUtil.invokeAndWaitIfNeeded(() -> ApplicationManager.getApplication().runWriteAction(() -> { SimpleEditorPreview simpleEditorPreview = (SimpleEditorPreview)myPreviewPanel; simpleEditorPreview.setupRainbow(descriptor.getScheme(), (RainbowColorSettingsPage)myPage); simpleEditorPreview.updateView(); })); }