void (@NotNull PsiElement element, int offsetInElement, @NotNull Consumer<? super PomTarget> consumer) { if (element.getLanguage() == YAMLLanguage.INSTANCE && element instanceof YAMLKeyValue) { consumer.consume((YAMLKeyValue)element); } }