Skip non-declare classes.
Fixed support generic types in type declaration.