refactor identifier processing and get method invocation information