void () { assertOptions("foo(bar.st<caret>r);", "Unwrap 'bar.str'"); assertUnwrapped("foo(bar.st<caret>r);", "bar.str;"); final RangeHighlighter[] highlighters = getEditor().getMarkupModel().getAllHighlighters(); assertSize(1, highlighters); assertEquals(42, highlighters[0].getStartOffset()); assertEquals(49, highlighters[0].getEndOffset()); }