void performWrite(Runnable action) {
    if (requiresWriteAction()) {
      ApplicationManager.getApplication().runWriteAction(action);
    } else {
      action.run();
    }
  }
void performWrite(Runnable action)