Renaming the `tags` method to `getTags` for overall consistency, and fixing the Javadoc to mention that this returns an immutable collection. Closes gh-25678
Renaming the `tags` method to `getTags` for overall consistency, and fixing the Javadoc to mention that this returns an immutable collection. Closes gh-25678