docs: public static boolean isInEc2(InstanceInfo instanceInfo) {
          if (instanceInfo.getDataCenterInfo() instanceof AmazonInfo) {
              String instanceId = ((AmazonInfo) instanceInfo.getDataCenterInfo()).getId();
              if (instanceId != null && instanceId.startsWith("i-")) {
                  return true;
              }
          }
          return false;
      }