public void deleteClassFields(@Nonnull Workspace workspace,
	                              @Nonnull WorkspaceResource resource,
	                              @Nonnull JvmClassBundle bundle,
	                              @Nonnull JvmClassInfo declaringClass,
	                              @Nonnull Collection<FieldMember> fields) {
		ClassReader reader = declaringClass.getClassReader();
		ClassWriter writer = new ClassWriter(reader, 0);
		MemberRemovingVisitor visitor = new MemberRemovingVisitor(writer, FieldPredicate.of(fields));
		reader.accept(visitor, 0);
		bundle.put(declaringClass.toJvmClassBuilder()
				.adaptFrom(writer.toByteArray())
				.build());
	}
Removes the given fields from the given class.

@param workspace
		Containing workspace.
@param resource
		Containing resource.
@param bundle
		Containing bundle.
@param declaringClass
		Class declaring the methods.
@param fields
		Fields to delete.
recaf-ui/src/main/java/software/coley/recaf/services/navigation/Actions.java