void () { String text = "/** .../ */"; final int offset = text.indexOf("..."); myDummyFile = createDummyFile(getName() + ".java", text); String treeBefore = DebugUtil.psiTreeToString(myDummyFile, false); WriteCommandAction.runWriteCommandAction(getProject(), () -> { BlockSupport.getInstance(getProject()).reparseRange(myDummyFile, offset, offset + 3, "*"); BlockSupport.getInstance(getProject()).reparseRange(myDummyFile, offset, offset + 1, "..."); }); String treeAfter = DebugUtil.psiTreeToString(myDummyFile, false); assertEquals(treeBefore, treeAfter); }