Improve Java time related imports and hinting.