function injectRegister(nodePath) {
          if (isClassRegistered(nodePath)) {
            return;
          }
          let componentName = findComponentName(nodePath);
          if (!componentName) {
            anonymousClassCount += 1;
            componentName = `anonymous${anonymousClassCount}`;
          }
          injectRegisterClass(nodePath, componentName);
          injectedRegister = true;
        }
@param {NodePath<ClassDeclaration> | NodePath<Expression>} nodePath