private function filterStatesNames(array &$newStateList): AutomatedInterface
    {
        foreach ($newStateList as &$stateName) {
            $this->validateName($stateName);
        }

        return $this;
    }
private function filterStatesNames(array &$newStateList): AutomatedInterface
    {
        foreach ($newStateList as &$stateName) {
            $this->validateName($stateName);
        }

        return $this;
    }
private function filterStatesNames ( array & $ newStateList ) : AutomatedInterface { foreach ( $ newStateList as & $ stateName ) { $ this -> validateName ( $ stateName ) ; } return $ this ; }
To remove canonical states name in the list to avoid error.

@param array $newStateList

@return AutomatedInterface
To remove canonical states name in the list to avoid error .