resolve stereotypes before direct annotations