void (@NotNull ExternalSystemTaskNotificationEvent event) { if (isPreviewMode) return; if (event instanceof ExternalSystemBuildEvent) { var buildEvent = ((ExternalSystemBuildEvent)event).getBuildEvent(); eventDispatcher.onEvent(event.getId(), buildEvent); } else if (event instanceof ExternalSystemTaskExecutionEvent) { var buildEvent = convert(((ExternalSystemTaskExecutionEvent)event)); eventDispatcher.onEvent(event.getId(), buildEvent); } }