void () { ApplicationManager.getApplication().invokeLater(() -> { if (myFileEditor != null) { showCard(EDITOR_CARD); } else { myErrorLabel.setText(IdeBundle.message("label.downloading.cancelled")); showCard(ERROR_CARD); } }); }