def METHOD_NAME(
    self,
    before: Optional[str] = None,
    after: Optional[str] = None,
    within: Optional[str] = None,
    line_position: Optional[str] = None,
    config: Optional[ConfigElementType] = None,
) -> None:
    """Mutate the config based on additional information."""
    config = config or {}
    self.spacing_before = (
        before or config.get("spacing_before", None) or self.spacing_before
    )
    self.spacing_after = (
        after or config.get("spacing_after", None) or self.spacing_after
    )
    self.spacing_within = (
        within or config.get("spacing_within", None) or self.spacing_within
    )
    self.line_position = (
        line_position or config.get("line_position", None) or self.line_position
    )