Look into the UsesCollector class. I guess it assumes the existence of a parsingEnvironment(), which those languages maybe don't attach to the TopDUContexts.