Microsoft successfully sued Corel for design patent infringement related to the ribbon interface. Corel had a “Word mode” in WordPerfect X7. The damages were about a quarter million dollars. YMMV.
Oracle v Google is copyright as applied to API’s. Different laws. Patents expire more quickly.