void () { ReadAction.nonBlocking(this::checkPathAndGetErrorIcon) .expireWhen(() -> !myStoreAsFileGearButton.isShowing()) .finishOnUiThread(ModalityState.defaultModalityState(), myStoreAsFileGearButton::setIcon) .submit(NonUrgentExecutor.getInstance()); }