allow +java-current-package and +java-current-class functions to operate on java-ts-mode (the java tree-sitter mode) not just java-mode.