PropertyRecord (@NotNull String name, @Nullable PropertyValue value1, @Nullable PropertyValue value2) { assert value1 != null || value2 != null; String text1 = value1 != null ? value1.toString() : null; String text2 = value2 != null ? value2.toString() : null; // TODO: show differences in line separators ? if (text1 != null) text1 = StringUtil.convertLineSeparators(text1); if (text2 != null) text2 = StringUtil.convertLineSeparators(text2); return new PropertyRecord(name, text1, text2); }