boolean (@NotNull Editor editor) { return editor.getSettings().isRightMarginShown() && editor.getColorsScheme().getColor(EditorColors.RIGHT_MARGIN_COLOR) != null && (Registry.is("editor.show.right.margin.in.read.only.files") || editor.getDocument().isWritable()); }