String (PsiFile assoc, PsiFile psiFile) { final VirtualFile virtualFile = assoc.getVirtualFile(); assert virtualFile != null; final String path = VfsUtilCore.findRelativePath(psiFile.getVirtualFile(), virtualFile, File.separatorChar); final ProjectFileIndex index = ProjectRootManager.getInstance(assoc.getProject()).getFileIndex(); final Module module = index.getModuleForFile(virtualFile); return path != null ? (module != null ? "[" + module.getName() + "] - " + path : path) : virtualFile.getPresentableUrl(); }