TextAttributes (@Nullable Editor editor) { if (editor == null) { return EditorColorsManager.getInstance().getGlobalScheme().getAttributes(myKey); } else { return editor.getColorsScheme().getAttributes(myKey); } }