List<PsiClass> () { if (!getNotNulls().contains(Jsr305Support.JAVAX_ANNOTATION_NONNULL)) { return Collections.emptyList(); } return CachedValuesManager.getManager(myProject).getCachedValue(myProject, () -> { Set<PsiClass> result = new HashSet<>(getPossiblyUnresolvedJavaNicknameUsages()); GlobalSearchScope scope = new DelegatingGlobalSearchScope(GlobalSearchScope.allScope(myProject)) { @Override public boolean contains(@NotNull VirtualFile file) { return super.contains(file) && !FileTypeRegistry.getInstance().isFileOfType(file, JavaFileType.INSTANCE); } }; PsiClass[] nickDeclarations = JavaPsiFacade.getInstance(myProject).findClasses(Jsr305Support.TYPE_QUALIFIER_NICKNAME, scope); for (PsiClass tqNick : nickDeclarations) { result.addAll(ContainerUtil.findAll(MetaAnnotationUtil.getChildren(tqNick, scope), Jsr305Support::isNullabilityNickName)); } return CachedValueProvider.Result.create(new ArrayList<>(result), PsiModificationTracker.MODIFICATION_COUNT); }); }