void (@NotNull VirtualFile file, @NotNull String assumedPackage) { //System.out.println("file = " + file); ExternalAnnotationsManagerImpl manager = (ExternalAnnotationsManagerImpl)ExternalAnnotationsManager.getInstance(getProject()); PsiFile psiFile = getPsiManager().findFile(file); MostlySingularMultiMap<String, BaseExternalAnnotationsManager.AnnotationData> map = manager.getDataFromFile(psiFile); for (String externalName : map.keySet()) { checkExternalName(psiFile, externalName, assumedPackage); // 'annotation name="org.jetbrains.annotations.NotNull"' should have FQN for (BaseExternalAnnotationsManager.AnnotationData annotationData : map.get(externalName)) { PsiAnnotation annotation = annotationData.getAnnotation(manager); String nameText = annotation.getNameReferenceElement().getText(); assertClassFqn(nameText, psiFile, externalName, null); } } }