The blacker the better… especially in Chernobyl!

Is this radiotrophic fungus using its melanin to protect against ionising radiation or actually to metabolise the radiation?