def METHOD_NAME(self, version: Optional[str] = None) -> Optional[str]:
    """
    Runs changelog-entry action if present and returns string that can be
    used as a changelog entry.
    Args:
        version: version to be set in specfile
    Returns:
        Changelog entry or `None` if action is not present.
    """
    env = {"PACKIT_PROJECT_VERSION": version}
    messages = self.up.get_output_from_action(ActionName.changelog_entry, env=env)
    if not messages:
        return None
    return "\n".join(map(lambda line: line.rstrip(), messages))