boolean (PsiClass psiClass) { final VirtualFile file = PsiUtilCore.getVirtualFile(psiClass); if (file == null) return false; final List<OrderEntry> entries = ProjectRootManager.getInstance(psiClass.getProject()).getFileIndex().getOrderEntriesForFile(file); return entries.stream().anyMatch(entry -> entry instanceof JdkOrderEntry); }