void () { typeInTextToAllDocuments("text"); typeInText(getSecondEditor(), "ttt"); try { undoFirstEditor(); fail("Exception expected"); } catch (Exception e) { assertStartsWith("Following files affected by this action have been already changed:", e.getMessage()); } }