def _register_target_alias(self, alias, target_type):
    if alias in self._target_by_alias:
      logger.debug('Target alias {} has already been registered. Overwriting!'.format(alias))

    self._target_by_alias[alias] = target_type
    self._subsystems.update(target_type.subsystems())
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/build_graph/build_configuration.py/BuildConfiguration._register_target_alias/original