code: public static boolean isStatement(JCTree tree) {
          return (tree instanceof JCStatement) &&
                  !tree.hasTag(CLASSDEF) &&
                  !tree.hasTag(Tag.BLOCK) &&
                  !tree.hasTag(METHODDEF);
      }
docs: Return true if the tree corresponds to a statement