void (String text, List<TextContent.Exclusion> ranges) { TextContent initial = TextContent.psiFragment(PLAIN_TEXT, myFixture.configureByText("a.txt", text)); TextContent batchExcluded = initial.excludeRanges(ranges); TextContent sequentiallyExcluded = excludeSequentially(ranges, initial); if (!sequentiallyExcluded.equals(batchExcluded)) { assertEquals(((TextContentImpl)sequentiallyExcluded).tokens, ((TextContentImpl)batchExcluded).tokens); } }