void (final @NotNull @NlsContexts.DialogMessage String errorMessage, boolean cancelled) { LOG.debug("Error: " + errorMessage); synchronized (myLock) { myLocalVirtualFile = null; myPrevLocalFile = null; myState = RemoteFileState.ERROR_OCCURRED; myErrorMessage = errorMessage; } for (FileDownloadingListener listener : myListeners) { if (!cancelled) { listener.errorOccurred(errorMessage); } } }