def METHOD_NAME(
    kspec: Set[Tuple[str, str]], message: str, color: Callable[[str], str], generate_json: bool
) -> Optional[Dict]:
    info = ""
    for contract, function in kspec:
        info += f"{message} {contract}.{function}\n"
    if info:
        logger.info(color(info))
    if generate_json:
        json_kspec_present = output.Output(info, additional_fields={"signatures": kspec})
        return json_kspec_present.data
    return None