@Nullable
  private static Document getDocument(@NotNull PsiElement element) {
    return PsiDocumentManager.getInstance(element.getProject()).getDocument(element.getContainingFile());
  }
@Nullable
  private static Document getDocument(@NotNull PsiElement element)