Collection<PsiFileSystemItem> () { Module iconsModule = ModuleManager.getInstance(element.getProject()).findModuleByName(PLATFORM_ICONS_MODULE); if (iconsModule == null) { iconsModule = ModuleManager.getInstance(element.getProject()).findModuleByName(ICONS_MODULE); } if (iconsModule == null) { return super.getExtraContexts(); } final List<PsiFileSystemItem> result = new SmartList<>(); final VirtualFile[] roots = ModuleRootManager.getInstance(iconsModule).getSourceRoots(); final PsiManager psiManager = element.getManager(); for (VirtualFile root : roots) { final PsiDirectory directory = psiManager.findDirectory(root); ContainerUtil.addIfNotNull(result, directory); } return result; }