Collection<PsiFileSystemItem> () { final PsiFile containingFile = getContainingFile(); if (containingFile == null) { return Collections.emptyList(); } final Module module = ModuleUtilCore.findModuleForPsiElement(getElement()); if (module == null) { return Collections.emptyList(); } final Set<VirtualFile> roots = new HashSet<>(); final VirtualFile parent = containingFile.getVirtualFile().getParent(); roots.add(parent); for (VirtualFile sourceRoot : ModuleRootManager.getInstance(module).getSourceRoots(JavaModuleSourceRootTypes.PRODUCTION)) { roots.add(sourceRoot.findChild("META-INF")); } return toFileSystemItems(roots); }