Fix https://jira.guidewire.com/browse/IDE-406

Warn on self delegation