Self and non-self recognition is important for fungi when hyphae interact fuse if they should compartmentalize and undergo apoptosis to kill the heterokaryoton or exchange nutrients. This process is part of cell defense and to limit to the movement of mycoviruses.
A paper in PLOS ONE describes the Genesis of Fungal Non-Self Repertoire. This kind of work goes on down the hall from us as well in the Glass lab among others. This recent paper describes het genes, which contain WD40 repeats and different combinations of these help control specificity. There is of course a diverse literature on this subject especially in Neurospora, and I’m not reviewing it here, but it is an imporant process in understanding how fungi interact with their environment.