boolean () { final Ref<Boolean> deleted = Ref.create(false); ProgressManager.getInstance().runProcessWithProgressSynchronously( (Runnable)() -> ProjectFileIndex.getInstance(myProject).iterateContent(fileOrDir -> { if (readAttribute(fileOrDir) != null) { writeAttribute(fileOrDir, ""); deleted.set(true); } if (ProgressManager.getInstance().getProgressIndicator().isCanceled()) { return false; } return true; }), PyPsiBundle.message("debugger.cleaning.signature.cache"), true, myProject); return deleted.get(); }