@ApiStatus.Internal
  public CustomRegionTreeElement endRegion(@NotNull PsiElement element) {
    myEndOffset = element.getTextRange().getEndOffset();
    return myParent;
  }
@ApiStatus.Internal
  public CustomRegionTreeElement endRegion(@NotNull PsiElement element)