           # Link to other class' class methods
           else if /^\@/.test(refMethod)
             methods = _.map(_.filter(otherEntity.getMethods(), (m) -> _.indexOf(['class', 'mixin'], m.getType()) >= 0), (m) -> m)
-            
+
             match = _.find methods, (m) ->
               return refMethod.substring(1) == m.getName()
 

      methods = _.map(_.filter(entity.getMethods(), (m) -> m.getType() is 'instance'), (m) -> m)

      match = _.find methods, (m) ->
        return ref.substring(1) == m.getName()  

      if match
        if match.doc.delegation

            methods = _.map(_.filter(otherEntity.getMethods(), (m) -> m.getType() is 'instance'), (m) -> m)

            match = _.find methods, (m) ->
              return refMethod.substring(1) == m.getName()

            if match
              if match.doc.delegation
