code: public static boolean isNull(JCTree tree) {
          if (!tree.hasTag(LITERAL))
              return false;
          JCLiteral lit = (JCLiteral) tree;
          return (lit.typetag == BOT);
      }
docs: Return true if a tree represents the null literal.