Adds throw comment to getMethod javadoc