Extract ExternalAnnotationResolver
Copy and adapt TypeConversionUtil#erasure

This helps to separate SAM resolution from PSI
Minor refactoring in MembersCache

Inline methods, provide a sane public interface
Extract JavaResolverPsiUtils

Will contain PSI-specific JDR utilities
Introduce JavaClass.OriginKind

Answers to the question: where had this class originated from