void (@Nullable Supplier<? extends Icon> toolbarIconSupplier) { EdtInvocationManager.getInstance().invokeLater(() -> { myProgressPanel.remove(myProgressBar); if (toolbarIconSupplier != null) { myState.setIcon(toolbarIconSupplier.get()); } }); }