def METHOD_NAME(self, extra_aliases):
    for list_elements in self.pages.values():
        for element_as_str in list_elements:
            element = utils.import_object(element_as_str)
            if not isclass(element):
                continue
            true_dotted_path = utils.get_dotted_path(element)
            self.class_aliases[true_dotted_path] = element_as_str
    if isinstance(extra_aliases, dict):
        self.class_aliases.update(extra_aliases)
    elif isinstance(extra_aliases, list):
        for alias in extra_aliases:
            full_dotted_path = utils.get_dotted_path(
                utils.import_object(alias)
            )
            self.class_aliases[full_dotted_path] = alias