inliner alternative to Tobias Rapp's work
queue might be null for direct calls of inline_method
Refactoring