Hi,
in case you have a class with nested annotation within generic < >  like below

An error will be raised up to Problems panel

But when you open the file the error will disappear because the extension check the file.
This is very annoying issue because it seems there is an error but is not true.