@Override
	public void transform(@Nonnull JvmTransformerContext context, @Nonnull Workspace workspace,
	                      @Nonnull WorkspaceResource resource, @Nonnull JvmClassBundle bundle,
	                      @Nonnull JvmClassInfo initialClassState) throws TransformationException {
		// Adapt the class bytes by removing any illegal signature.
		ClassReader reader = new ClassReader(context.getBytecode(bundle, initialClassState));
		ClassWriter writer = new ClassWriter(reader, 0);

		IllegalSignatureRemovingVisitor remover = new IllegalSignatureRemovingVisitor(writer);
		reader.accept(remover, 0);

		// If the visitor did work, update the class.
		if (remover.hasDetectedIllegalSignatures())
			context.setBytecode(bundle, initialClassState, writer.toByteArray());
	}
A transformer that removes any invalid signatures from classes and any of their declared members.

@author Matt Coley
recaf-core/src/main/java/software/coley/recaf/services/deobfuscation/transform/generic/IllegalSignatureRemovingTransformer.java