added primairySourceElement for the generated methods. However the
warnings seem to remain..