void (@NotNull final PsiElement element, @NotNull final Language language, TokenConsumer consumer) { SpellcheckingStrategy factoryByLanguage = getSpellcheckingStrategy(element, language); if (factoryByLanguage == null) { return; } Tokenizer tokenizer = factoryByLanguage.getTokenizer(element); //noinspection unchecked tokenizer.tokenize(element, consumer); }