def _color(self, text, color, enabled=None):
colored = self.config.getvalue('<STR_LIT>', enabled)<EOL>if colored:<EOL><INDENT>text = utils.color_text(text, color)<EOL><DEDENT>return text<EOL>
conditionally color text based on config and flags