only shared top-level methods are detected via metamodel in JS