@NotNull public ClassDescriptor getAnnotationClassByName(@NotNull Name simpleName) { ClassifierDescriptor classifier = annotationPackageFragment .getMemberScope() .getContributedClassifier(simpleName, NoLookupLocation.FROM_BUILTINS); assert classifier instanceof ClassDescriptor : "Must be a class descriptor " + simpleName + ", but was " + (classifier == null ? "null" : classifier.toString()); return (ClassDescriptor) classifier; }
@NotNull public MemberScope getAnnotationPackageScope() { return annotationPackageFragment.getMemberScope(); }
@NotNull public MemberScope getBuiltInsPackageScope() { return builtinsPackageFragment.getMemberScope(); }