public boolean isElement() {
        if (current() == null) return false;
        return current() instanceof LeafPsiElement;
    }
Returns whether the current token is an element
integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Tokens.java