Generic annotation scanner