This name is strange/backwards. How about getRequiredModules?