The examination of the location where Targets are defined could be extracted by a scalac comiler plugin.