SimpleColoredText (String name, SimpleColoredText text, TextAttributes attributes, int lineNumber, Project project) { Map<Variable, VariableValue> oldValues = getOldValues(project); VariableText variableText = computeVariablePresentationWithChanges(name, text, attributes, lineNumber, oldValues); SimpleColoredText coloredText = new SimpleColoredText(); for (LineExtensionInfo info : variableText.infos) { TextAttributes textAttributes = new TextAttributes(info.getColor(), info.getBgColor(), info.getEffectColor(),info.getEffectType(), info.getFontType()); coloredText.append(info.getText(), SimpleTextAttributes.fromTextAttributes(textAttributes)); } return coloredText; }