boolean canSkipFile(@NotNull PsiFile file) {
    synchronized (mySkipWholeInspectionsCache) {
      if (mySkipWholeInspectionsCache.contains(file)) {
        return true;
      }
    }
    return false;
  }
boolean canSkipFile(@NotNull PsiFile file)