nitgg: use is_toplevel instead of heuristics to not customize top-level methods