public boolean isWhitespace() {
        if (current() == null) return false;
        return current().getPsi() instanceof PsiWhiteSpace;
    }
Returns whether the current token is whitespace
integration/intellij/src/main/java/ai/vespa/intellij/schema/utils/Tokens.java