Extract usefull function in helper class.
SONARFLEX-22 Fix rule to apply only to public class members.