SONAR-5007 optimize changes of rule activation