Imports clean-up, only methods declared in types assignable from Actor
and Page are recorded.