boolean (@NotNull Project project, Editor editor, PsiFile file) { DaemonProgressIndicator indicator = (DaemonProgressIndicator)ProgressIndicatorProvider.getGlobalProgressIndicator(); Throwable alreadyCalled = isAvailableCalled.put(indicator, new Throwable()); if (alreadyCalled != null) { throw new IllegalStateException(" .isAvailable() already called in:\n---------------\n"+ExceptionUtil.getThrowableText(alreadyCalled)+"\n-----------"); } return true; }