@NotNull
  private static List<PsiReference> getPomTagReferencesToDirectory(@Nullable XmlTag tag,
                                                                   @NotNull VirtualFile pomFile,
                                                                   @NotNull VirtualFile directory) {
    try {
      return doGetPomTagReferencesToDirectory(tag, pomFile, directory);
    } catch (InvalidPathException ignored) {
      return List.of();
    }
  }
@NotNull
  private static List<PsiReference> getPomTagReferencesToDirectory(@Nullable XmlTag tag,
                                                                   @NotNull VirtualFile pomFile,
                                                                   @NotNull VirtualFile directory)