@NotNull
  public static ThreeState getEffectiveAssertionStatus(@NotNull Location location) {
    ReferenceType type = location.declaringType();
    if (type instanceof ClassType) {
      Field field = type.fieldByName("$assertionsDisabled");
      if (field != null && field.isStatic() && field.isSynthetic()) {
        Value value = type.getValue(field);
        if (value instanceof BooleanValue) {
          return ThreeState.fromBoolean(!((BooleanValue)value).value());
        }
      }
    }
    return ThreeState.UNSURE;
  }
@NotNull
  public static ThreeState getEffectiveAssertionStatus(@NotNull Location location)