public String linkForMessage(ProtoElement element){
  if (isExternalFile(element.getFile())) {
    String fullName=element.getFullName();
    return String.format("[%s]{@link external:\"%s\"}",fullName,fullName);
  }
 else {
    String simpleName=element.getSimpleName();
    return String.format("[%s]{@link %s}",simpleName,simpleName);
  }
}

public String linkForMessage ( ProtoElement element ) { if ( isExternalFile ( element . getFile ( ) ) ) { String fullName = element . getFullName ( ) ; return String . format ( "[%s]{@link external:\"%s\"}" , fullName , fullName ) ; } else { String simpleName = element . getSimpleName ( ) ; return String . format ( "[%s]{@link %s}" , simpleName , simpleName ) ; } }
returns the jsdoc format of link to the element .
