@Nullable
      private static String getUrl(PsiElement element) {
        return !(element instanceof PsiDirectory) ? null : ((PsiDirectory)element).getVirtualFile().getUrl();
      }
@Nullable
      private static String getUrl(PsiElement element)