public static <T> T doWriteAction(final @NotNull Computable<T> task) {
    return executeOnEdt(() -> ApplicationManager.getApplication().runWriteAction(task));
  }
public static <T> T doWriteAction(final @NotNull Computable<T> task)