public void addClassField(@Nonnull Workspace workspace,
	                          @Nonnull WorkspaceResource resource,
	                          @Nonnull JvmClassBundle bundle,
	                          @Nonnull JvmClassInfo info) {
		new AddMemberPopup(member -> {
			ClassReader reader = info.getClassReader();
			ClassWriter writer = new ClassWriter(reader, 0);
			reader.accept(new MemberStubAddingVisitor(writer, member), 0);
			JvmClassInfo updatedInfo = info.toJvmClassBuilder()
					.adaptFrom(writer.toByteArray())
					.build();
			bundle.put(updatedInfo);

			// Open the assembler with the new field
			try {
				openAssembler(PathNodes.memberPath(workspace, resource, bundle, updatedInfo, member));
			} catch (IncompletePathException e) {
				logger.error("Failed to open assembler for new field", e);
			}
		}).forField(info).show();
	}
Prompts the user for field declaration info, to add it to the given class.

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