private static void invokeLaterOnWriteThreadUnderLock(@NotNull Runnable runnable) {
    final Application application = ApplicationManager.getApplication();
    application.invokeLaterOnWriteThread(() -> application.runWriteAction(runnable));
  }
private static void invokeLaterOnWriteThreadUnderLock(@NotNull Runnable runnable)