fix type hint for getPostProcessor