@Override
  public boolean isWriteSafeModality(@NotNull ModalityState state) {
    return Boolean.TRUE.equals(myWriteSafeModalities.get(state));
  }
@Override
  public boolean isWriteSafeModality(@NotNull ModalityState state)