public static boolean hasCollision(String topicA, String topicB) {
        return unifyCollisionChars(topicA).equals(unifyCollisionChars(topicB));
    }
Returns true if the topicNames collide due to a period ('.') or underscore ('_') in the same position.

@param topicA A topic to check for collision
@param topicB A topic to check for collision
@return true if the topics collide
clients/src/main/java/org/apache/kafka/common/internals/Topic.java