* Don't show "context" for classes without either contextType or contextTypes
* For classes with contextTypes, change the label to "legacy context" instead

---
Originally reported by @gaearon via https://github.com/bvaughn/react-devtools-experimental/issues/368
state,
            } = ((data.value: any): InspectedElementBackend);
            const inspectedElement: InspectedElementFrontend = {
              canEditFunctionProps,
              canEditHooks,
              canToggleSuspense,
              canViewSource,
              id,
              source,
              type,
              owners:
                owners === null
                  ? null
                  : owners.map(owner => {
                      const [
                        displayName,
                        hocDisplayNames,
                      ] = separateDisplayNameAndHOCs(
                        owner.displayName,
                        owner.type,
                      );
                      return {
                        ...owner,
                        displayName,
                        hocDisplayNames,
                      };
                    }),
              context: hydrateHelper(context),
              hooks: hydrateHelper(hooks),
              props: hydrateHelper(props),