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