Replace occurrence constants with enum.
Added .idea