private int mapToPid(@Nonnull VirtualMachineDescriptor descriptor) {
		String id = descriptor.id();
		if (id.matches("\\d+")) {
			return Integer.parseInt(descriptor.id());
		} else {
			return -1;
		}
	}
@param descriptor
		VM descriptor.

@return PID of VM process.
recaf-core/src/main/java/software/coley/recaf/services/attach/BasicAttachManager.java