void () { var file = myFixture.configureByText("a.txt", "aaabbbccc"); var content = TextContent.psiFragment(PLAIN_TEXT, file).excludeRange(new TextRange(3, 6)); assertEquals(0, content.textOffsetToFile(0)); assertEquals(9, content.textOffsetToFile(6)); assertEquals(3, content.textOffsetToFile(3, false)); assertEquals(6, content.textOffsetToFile(3, true)); }