private void checkInstanceState(InstanceHealth instanceState) { checkNotNull(instanceState.getDescription(), "Description cannot be null for InstanceState"); checkNotNull(instanceState.getInstanceId(), "InstanceId cannot be null for InstanceState"); checkNotNull( instanceState.getReasonCode(), "While ReasonCode can be null for InstanceState, its Optional wrapper cannot"); checkNotNull(instanceState.getState(), "State cannot be null for InstanceState"); }