public static boolean isValidSignature(@Nullable String signature, @Nonnull SignatureContext context) {
		if (signature == null)
			return true;
		if (signature.isEmpty())
			return false;
		try {
			switch (context) {
				case CLASS -> CheckClassAdapter.checkClassSignature(signature);
				case FIELD -> CheckClassAdapter.checkFieldSignature(signature);
				case METHOD -> CheckClassAdapter.checkMethodSignature(signature);
			}
			return true;
		} catch (Throwable t) {
			return false;
		}
	}
@param signature
		Signature contents.
@param context
		Signature usage context.

@return {@code true} for a valid signatures, or {@code null}. Will be {@code false} otherwise.
recaf-core/src/main/java/software/coley/recaf/util/Types.java