RangeMarkerEx (@NotNull String text, final int start, final int end) { psiFile = createFile("x.txt", text); fileNode = psiFile.getNode(); // the node should be loaded, otherwise PsiToDocumentSynchronizer will ignore our commands return createMarker(psiFile, start, end); }