@Override
		protected boolean matchSignature(@Nonnull CpUtf8 e, @Nonnull AttributeHolder context) {
			return switch (context.getHolderType()) {
				case CLASS -> Types.isValidSignature(e.getText(), Types.SignatureContext.CLASS);
				case FIELD, RECORD_COMPONENT -> Types.isValidSignature(e.getText(), Types.SignatureContext.FIELD);
				case METHOD -> Types.isValidSignature(e.getText(), Types.SignatureContext.METHOD);
				case ATTRIBUTE -> false;
			};
		}
Extended illegal stripping transformer that also drops invalid signatures.
recaf-core/src/main/java/software/coley/recaf/services/workspace/io/BasicClassPatcher.java