SONARJAVA-587 improved precision of rule