public void rename(@Nonnull PathNode<?> path) {
		// Handle renaming based on the different resolved content type.
		if (path instanceof ClassPathNode classPath)
			Unchecked.run(() -> renameClass(classPath));
		else if (path instanceof ClassMemberPathNode memberPathNode)
			if (memberPathNode.isField())
				Unchecked.run(() -> renameField(memberPathNode));
			else
				Unchecked.run(() -> renameMethod(memberPathNode));
		else if (path instanceof FilePathNode filePath)
			Unchecked.run(() -> renameFile(filePath));
		else if (path instanceof DirectoryPathNode directoryPath)
			Unchecked.run(() -> renamePackageOrDirectory(directoryPath));
	}
Prompts the user to rename whatever sort of content is contained within the given path.

@param path
		Item to rename. Can be a number of values.
recaf-ui/src/main/java/software/coley/recaf/services/navigation/Actions.java