[fix] Collect super type and interfaces when computing required packages