@Override
        public void processTerminated(@NotNull ProcessEvent event) {
          ApplicationManager.getApplication().invokeLater(afterTask);
        }
@Override
        public void processTerminated(@NotNull ProcessEvent event)