String (@Nullable PsiFile f, ConvertContext context) { if (f == null) return null; VirtualFile currentFile = context.getFile().getOriginalFile().getVirtualFile(); if (currentFile == null) return null; return MavenDomUtil.calcRelativePath(currentFile.getParent(), f.getVirtualFile()); }