public void renameFile(@Nonnull Workspace workspace,
	                       @Nonnull WorkspaceResource resource,
	                       @Nonnull FileBundle bundle,
	                       @Nonnull FileInfo info) {
		String name = info.getName();
		new NamePopup(newFileName -> {
			if (name.equals(newFileName)) return;
			bundle.remove(name);
			bundle.put(info.toFileBuilder().withName(newFileName).build());
		}).withInitialPathName(name)
				.forFileRename(bundle)
				.show();
	}
Prompts the user to rename the given file.

@param workspace
		Containing workspace.
@param resource
		Containing resource.
@param bundle
		Containing bundle.
@param info
		File to rename.
recaf-ui/src/main/java/software/coley/recaf/services/navigation/Actions.java