def METHOD_NAME(self, classes: List[Class]):
    """
    Resolve the dependencies for the given list of classes and the target
    package.
    Reset aliases and imports from any previous runs keep the record
    of the processed class names
    """
    self.imports.clear()
    self.aliases.clear()
    self.class_map = self.create_class_map(classes)
    self.class_list = self.create_class_list(classes)
    self.resolve_imports()