In downstream we are having issues with tree-sitter-java package. It does not build from source, because the source distribution is missing files. @wetneb recommended to move to the fork tree-sitter-java-orchard, which is actively maintained and has additional fixes.
tree-sitter/tree-sitter-java#219 (comment)