def METHOD_NAME(self, **kwargs):
    """Create context for rendering page."""
    context = super().METHOD_NAME(**kwargs)
    context["path_object"] = self.path_object
    if isinstance(self.path_object, Unit):
        context["title"] = (
            pgettext(
                "Changes of string in a translation", "Changes of string in %s"
            )
            % self.path_object
        )
    elif isinstance(self.path_object, Translation):
        context["title"] = (
            pgettext("Changes in translation", "Changes in %s") % self.path_object
        )
    elif isinstance(self.path_object, Component):
        context["title"] = (
            pgettext("Changes in component", "Changes in %s") % self.path_object
        )
    elif isinstance(self.path_object, Project):
        context["title"] = (
            pgettext("Changes in project", "Changes in %s") % self.path_object
        )
    elif isinstance(self.path_object, Language):
        context["title"] = (
            pgettext("Changes in language", "Changes in %s") % self.path_object
        )
    elif isinstance(self.path_object, ProjectLanguage):
        context["title"] = (
            pgettext("Changes in project", "Changes in %s") % self.path_object
        )
    elif self.path_object is None:
        context["title"] = gettext("Changes")
    else:
        raise TypeError(f"Unsupported {self.path_object}")
    if self.path_object is None:
        context["changes_rss"] = reverse("rss")
    else:
        context["changes_rss"] = reverse(
            "rss", kwargs={"path": self.path_object.get_url_path()}
        )
    if self.changes_form.is_valid():
        context["query_string"] = self.changes_form.urlencode()
        context["search_items"] = self.changes_form.items()
    context["form"] = self.changes_form
    return context