void (@NotNull String text) { configureFromFileText(getTestName(false) + ".txt", text); Pair<String,String> parseResult = parse(); String textBefore = getEditor().getDocument().getText(); killRingSave(); if (parseResult.first == null) { return; } String contents = CopyPasteManager.getInstance().getContents(DataFlavor.stringFlavor); assertEquals(parseResult.first, contents); assertEquals(textBefore, getEditor().getDocument().getText()); }