then it should be ``@return Lock|null`` for proper documentation