+
+ override protected String formatDataForJavaDoc(GeneratedType type) {
+ val listType = findListType(type)
+ if (listType === null) {
+ return ""
+ }
+
+ val importedName = listType.importedName
+ return '''
+ This class represents the key of {@link «importedName»} class.
+
+ @see «importedName»
+ '''
+ }
+
+ private static def Type findListType(GeneratedType type) {
+ for (Type implType : type.getImplements()) {
+ if (implType instanceof ParameterizedType) {
+ val identifiable = BindingTypes.extractIdentifiable(implType)
+ if (identifiable !== null) {
+ return identifiable
+ }
+ }
+ }
+ return null
+ }