LexerPosition () { return new HtmlLexerPosition(getTokenStart(), getState() & (~CONTENT_PROVIDER_HAS_STATE), myDelegate.getCurrentPosition(), myEmbeddedContentProviders.stream() .map(provider -> new Pair<>(provider, provider.getState())) .filter(pair -> pair.second != null) .collect(Collectors.toMap(p -> p.first, p -> p.second))); }