private void acceptDescriptor(@Nullable String descriptor) {
		if (descriptor == null || descriptor.isEmpty()) return;

		try {
			if (descriptor.charAt(0) == '(') {
				Type methodType = Type.getMethodType(descriptor);
				typeConsumer.accept(methodType);
			} else {
				Type type = Type.getType(descriptor);
				typeConsumer.accept(type);
			}
		} catch (Throwable t) {
			logger.trace("Ignored invalid type: {}", descriptor, t);
		}
	}
@param typeConsumer
		Type consumer to accept seen types.
		The same type may be visited multiple times.
		Method types are also passed in.
recaf-core/src/main/java/software/coley/recaf/util/visitors/TypeVisitor.java