public void renameMethod(@Nonnull ClassMemberPathNode path) throws IncompletePathException {
		Workspace workspace = path.getValueOfType(Workspace.class);
		WorkspaceResource resource = path.getValueOfType(WorkspaceResource.class);
		ClassBundle<?> bundle = path.getValueOfType(ClassBundle.class);
		ClassInfo declaringClass = path.getValueOfType(ClassInfo.class);
		MethodMember methodMember = (MethodMember) path.getValue();
		if (workspace == null) {
			logger.error("Cannot resolve required path nodes for method '{}', missing workspace in path", methodMember.getName());
			throw new IncompletePathException(Workspace.class);
		}
		if (resource == null) {
			logger.error("Cannot resolve required path nodes for method '{}', missing resource in path", methodMember.getName());
			throw new IncompletePathException(WorkspaceResource.class);
		}
		if (bundle == null) {
			logger.error("Cannot resolve required path nodes for method '{}', missing bundle in path", methodMember.getName());
			throw new IncompletePathException(ClassBundle.class);
		}
		if (declaringClass == null) {
			logger.error("Cannot resolve required path nodes for method '{}', missing class in path", methodMember.getName());
			throw new IncompletePathException(ClassBundle.class);
		}
		renameMethod(workspace, resource, bundle, declaringClass, methodMember);
	}
Prompts the user to rename the given method.

@param path
		Path to method.

@throws IncompletePathException
		When the path is missing parent elements.
recaf-ui/src/main/java/software/coley/recaf/services/navigation/Actions.java