generalized my_method so it could be used by check_for_imitations heuristics