void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { MavenId id = MavenArtifactCoordinatesHelper.getId(myContext); MavenProjectsManager manager = MavenProjectsManager.getInstance(project); MavenProject parentFile = manager.findProject(id); if (parentFile != null) { VirtualFile currentFile = myContext.getFile().getVirtualFile(); String relativePath = MavenDomUtil.calcRelativePath(currentFile.getParent(), parentFile.getFile()); var xmlTag = (XmlTag)descriptor.getPsiElement(); xmlTag.getValue().setText(relativePath); } }