code: public static int finalizerPos(JCTree tree) {
          if (tree.hasTag(TRY)) {
              JCTry t = (JCTry) tree;
              Assert.checkNonNull(t.finalizer);
              return firstStatPos(t.finalizer);
          } else if (tree.hasTag(SYNCHRONIZED)) {
              return endPos(((JCSynchronized) tree).body);
          } else {
              throw new AssertionError();
          }
      }
docs: The position of the finalizer of given try/synchronized statement.