[java] Update UnnecessaryImport to recognize usage of imported types in javadoc's @exception tag #3317