code: public synchronized List<KafkaDependencyInstanceContext> getDepsByTopicAndEvent(final String topic,
        final String regex) {
      final Map<String, List<KafkaDependencyInstanceContext>> regexMap = this.topicEventMap.get(topic);
      if (regexMap != null) {
        return regexMap.get(regex);
      }
      return Collections.emptyList();
    }
docs: Returns dependencies with topic and dependency's event regular expression match