question: protected static RpcPair resolveRpcPair ( ASTNode node , PeerTypeResolver peerResolver ) { MethodDeclaration methodDecl = ASTResolving . findParentMethodDeclaration ( node ) ; TypeDeclaration typeDecl = ( TypeDeclaration ) ASTResolving . findAncestor ( node , ASTNode . TYPE_DECLARATION ) ; assert ( typeDecl != null ) ; IType dstType = peerResolver . getPeerType ( typeDecl ) ; if ( dstType == null ) { return null ; } CompilationUnit astRoot = ASTResolving . createQuickFixAST ( dstType . getCompilationUnit ( ) , null ) ; TypeDeclaration dstTypeDecl = JavaASTUtils . findTypeDeclaration ( astRoot , dstType . getFullyQualifiedName ( '.' ) ) ; if ( dstTypeDecl == null ) { return null ; } return new RpcPair ( typeDecl , methodDecl , dstTypeDecl ) ; }
target:  Finds the related RPC components for a given method: declaring type & peer type.