Color (@Nullable Editor editor) { Color color = getAttributes(editor).getForegroundColor(); if (color != null) return color; Color fg = getColor(editor); Color bg = editor instanceof EditorEx ? ((EditorEx)editor).getBackgroundColor() : EditorColorsManager.getInstance().getGlobalScheme().getDefaultBackground(); return ColorUtil.mix(fg, bg, MIDDLE_COLOR_FACTOR); }