@Contract("null -> null")
  public static @Nullable GrControlFlowOwner getTopmostOwner(@Nullable PsiElement place) {
    if (place == null) {
      return null;
    }
    var owner = findControlFlowOwner(place);
    if ((place instanceof GrOpenBlock && owner instanceof GroovyFile) ||
        place == owner ||
        (owner == null && place instanceof GrControlFlowOwner)) {
      return (GrControlFlowOwner)place;
    }
    else if (owner == null) {
      return null;
    }
    else {
      return getTopmostOwner(owner);
    }
  }
@Contract("null -> null")
  public static @Nullable GrControlFlowOwner getTopmostOwner(@Nullable PsiElement place)