Makes PrepareContractionHierarchies working in TeaVM