void () { if (getState() != ExternalSystemTaskState.IN_PROGRESS) { return; } final ExternalSystemFacadeManager manager = ApplicationManager.getApplication().getService(ExternalSystemFacadeManager.class); try { final RemoteExternalSystemFacade<?> facade = manager.getFacade(myIdeProject, myExternalProjectPath, myExternalSystemId); setState(facade.isTaskInProgress(getId()) ? ExternalSystemTaskState.IN_PROGRESS : ExternalSystemTaskState.FAILED); } catch (Throwable e) { setState(ExternalSystemTaskState.FAILED); myError.set(e); if (!myIdeProject.isDisposed()) { LOG.warn(e); } } }