void () { var full = psiFragment(myFixture.configureByText("a.txt", " abc"), 0, 4); assertFalse(full.hasUnknownFragmentsIn(new TextRange(0, 0))); var fullUnknown = full.markUnknown(new TextRange(0, 0)); assertTrue(fullUnknown.hasUnknownFragmentsIn(new TextRange(0, 0))); assertTrue(fullUnknown.hasUnknownFragmentsIn(new TextRange(0, 1))); assertFalse(fullUnknown.hasUnknownFragmentsIn(new TextRange(1, 2))); var trimmedUnknown = fullUnknown.excludeRange(new TextRange(0, 1)); assertTrue(trimmedUnknown.hasUnknownFragmentsIn(new TextRange(0, 0))); assertTrue(trimmedUnknown.hasUnknownFragmentsIn(new TextRange(0, 1))); assertFalse(trimmedUnknown.hasUnknownFragmentsIn(new TextRange(1, 2))); }