Color () { if (myForcedBackground != null) return myForcedBackground; Color color = myScheme.getColor(EditorColors.BACKGROUND_COLOR); if (color == null) color = Color.white; if (myDocument.isWritable()) { return color; } Color readOnlyColor = myScheme.getColor(EditorColors.READONLY_BACKGROUND_COLOR); return readOnlyColor != null ? readOnlyColor : color; }