Fix Intellij 'optimizing away' imports that are used