@Override
  public @NotNull FileBasedIndex.InputFilter getInputFilter() {
    return new BaseFileTypeInputFilter(BEFORE_SUBSTITUTION) {
      @Override
      public boolean slowPathIfFileTypeHintUnsure(@NotNull IndexedFile file) {
        return file.getFile().isInLocalFileSystem();
      }

      @Override
      public @NotNull ThreeState acceptFileType(@NotNull FileType fileType) {
        if (fileType == HtmlFileType.INSTANCE) {
          return ThreeState.UNSURE; // check if a file is in local filesystem.
        }
        if (fileType instanceof LanguageFileType && ((LanguageFileType)fileType).getLanguage() instanceof TemplateLanguage) {
          return ThreeState.UNSURE; // check if a file is in local filesystem.
        }
        return ThreeState.NO;
      }
    };
  }
@Override
  public @NotNull FileBasedIndex.InputFilter getInputFilter()