public RootStatement getTopParent() {
    Statement ret = this;

    while (ret.getParent() != null) {
      ret = ret.getParent();
    }

    if (!(ret instanceof RootStatement)) {
      throw new IllegalStateException("Top parent is not a root statement! Malformed IR?");
    }

    return (RootStatement) ret;
  }
Gets the implicitly defined variables in this statement.

@return A list of {@link VarExprent}s that are implicitly defined. Can be null or empty if none exist.
src/org/jetbrains/java/decompiler/modules/decompiler/stats/Statement.java