LPS-32149 Prevent unnecessary replacement if groupNames is empty
LPS-32149 Copy getNames method from SocialActivityCounterFinderImpl (just copy-paste)
LPS-32149 Add groupNames as separate positional parameters
LPS-32149 SF