void () { final String[][] resources = {{"http://www.test.com/test", getTestName(false) + ".dtd"}}; doConfigureWithLocations(resources, "xml"); doDoTest(true,true); WriteCommandAction.runWriteCommandAction(null, () -> myEditor.getDocument().insertString(myEditor.getDocument().getCharsSequence().toString().indexOf("?>") + 2, "\n")); doDoTest(true,true); }