heterocyclic compound binding [GO_1901363] - Virtual Fly Brain