add `VisibleForTesting` java annotations for this method?

`VisibleForTesting` is a standalone java library used by content API, see http://code.google.com/p/google-collections/, we can reference it directly in java code.