boolean (@NotNull VirtualFile fileOrDir) { indicator.freezeIfPaused(); // give a chance to suspend indexing ProgressManager.checkCanceled(); if (indicator.isCanceled()) { return false; } try { processFileRethrowExceptions(fileOrDir); } catch (ProcessCanceledException pce) { throw pce; } catch (Exception e) { UnindexedFilesScanner.LOG.error("Error while scanning " + fileOrDir.getPresentableUrl() + "\n" + "To reindex this file IDEA has to be restarted", e); } return true; }