void () { final String text1 = "/**/"; final String text = text1 + "public class B { }"; initDocument(text); HighlighterIterator iterator = myHighlighter.createIterator(text1.length()); assertEquals(JavaTokenType.PUBLIC_KEYWORD, iterator.getTokenType()); }