@SuppressWarnings("deprecation")
  public @NonNls String toString() {
    return this == NON_MODAL
           ? "ModalityState.NON_MODAL"
           : "ModalityState:{" + StringUtil.join(getModalEntities(), it -> "[" + it + "]", ", ") + "}";
  }
@SuppressWarnings("deprecation")
  public @NonNls String toString()