refactoring required for jump to method in source viewer