Added Java API checker (animal sniffer) to build chain.
Added Optional.toRight method.