Source:
<code>public IStyledString.IComposedStyledString getStyledText(Object object) { final ReferenceChange refChange = (ReferenceChange)object; final String valueText = getValueText(refChange); final String referenceText = getReferenceText(refChange); ComposedStyledString ret = new ComposedStyledString(); if (refChange.getReference().isContainment()) { EObject value = refChange.getValue(); Match match = refChange.getMatch().getComparison().getMatch(value); if (match != null) { Iterable<Diff> subDifferences = match.getAllDifferences(); if (refChange.getState() != DifferenceState.UNRESOLVED && any(subDifferences, EMFComparePredicates.hasState(DifferenceState.UNRESOLVED))) { ret.append("> ", Style.DECORATIONS_STYLER); } } } final EObject refChangeValue = refChange.getValue(); if (refChangeValue.eIsProxy()) { StyleBuilder sb = new StyleBuilder(); sb.setFont(IItemFontProvider.ITALIC_FONT); <START> ret.append(valueText, sb.build()); <END> } else { ret.append(valueText); } ret.append(" [" + referenceText, Style.DECORATIONS_STYLER); switch (refChange.getKind()) { case ADD: ret.append(" add", Style.DECORATIONS_STYLER); break; case DELETE: ret.append(" delete", Style.DECORATIONS_STYLER); break; case CHANGE: ret.append(" " + changeText(refChange, refChange.getReference()), Style.DECORATIONS_STYLER); break; case MOVE: ret.append(" move", Style.DECORATIONS_STYLER); break; default: throw new IllegalStateException("Unsupported " + DifferenceKind.class.getSimpleName() + " value: " + refChange.getKind()); } ret.append("]", Style.DECORATIONS_STYLER); return ret; }</code><technical_language>simplified calling factory method: Style.builder().setFont(IItemFontProvider.ITALIC_FONT).build()</technical_language>

Target:
public IStyledString.IComposedStyledString getStyledText(Object object) { final ReferenceChange refChange = (ReferenceChange)object; final String valueText = getValueText(refChange); final String referenceText = getReferenceText(refChange); ComposedStyledString ret = new ComposedStyledString(); if (refChange.getReference().isContainment()) { EObject value = refChange.getValue(); Match match = refChange.getMatch().getComparison().getMatch(value); if (match != null) { Iterable<Diff> subDifferences = match.getAllDifferences(); if (refChange.getState() != DifferenceState.UNRESOLVED && any(subDifferences, EMFComparePredicates.hasState(DifferenceState.UNRESOLVED))) { ret.append("> ", Style.DECORATIONS_STYLER); } } } final EObject refChangeValue = refChange.getValue(); if (refChangeValue.eIsProxy()) { Style italic = Style.builder().setFont(IItemFontProvider.ITALIC_FONT).build(); ret.append(valueText, italic); } else { ret.append(valueText); } ret.append(" [" + referenceText, Style.DECORATIONS_STYLER); switch (refChange.getKind()) { case ADD: ret.append(" add", Style.DECORATIONS_STYLER); break; case DELETE: ret.append(" delete", Style.DECORATIONS_STYLER); break; case CHANGE: ret.append(" " + changeText(refChange, refChange.getReference()), Style.DECORATIONS_STYLER); break; case MOVE: ret.append(" move", Style.DECORATIONS_STYLER); break; default: throw new IllegalStateException("Unsupported " + DifferenceKind.class.getSimpleName() + " value: " + refChange.getKind()); } ret.append("]", Style.DECORATIONS_STYLER); return ret; }