As a more broad issue than T12407: Clean up includes of MITK core, it is favorable for speeding up compile time to use Forward declarations, move includes to cpp file and remove unnecessary includes.
- There is a clang-based tool for that: Include what you use
- Also, there is a python tool for that (some false positives the last time I tried it): Cppclean