Fixed issues due to IntelliJ IDEA actions before commit

Don't use reformat code nor optimize imports when committing scala templates as it doesn't work.

Some required imports are removed and some @**@ comments get the second @ removed, breaking templates, but commit proceeds as expected.