void () { Document document = EditorFactory.getInstance().createDocument(""); doInEditor(document, e1 -> doInEditor(document, e2 -> { float initialSpacing = e1.getColorsScheme().getLineSpacing(); assertEquals(initialSpacing, e2.getColorsScheme().getLineSpacing()); e1.getColorsScheme().setLineSpacing(initialSpacing + 0.1f); assertFalse(initialSpacing == e1.getColorsScheme().getLineSpacing()); assertEquals(initialSpacing, e2.getColorsScheme().getLineSpacing()); })); }