code: public boolean isExternalizable() {
          try {
              return env.types.isSubtype(type, env.externalizableSym.type);
          } catch (CompletionFailure ex) {
              // quietly ignore completion failures
              return false;
          }
      }
docs: Return true if this class implements
  <code>java.io.Externalizable</code>.