@staticmethod
def _build_dotted_part(component, relative_import_path) ->str:
    """Given a component, build a dotted path for import."""
    if relative_import_path == '':
        return component.prefix_import_path
    else:
        return component.prefix_import_path + '.' + relative_import_path
