extract common method to ModuleUtil