@Override
  public boolean contains(@NotNull VirtualFile file) {
    if (file.isDirectory())
      return false;
    FileViewProvider viewProvider = myPsiManager.findViewProvider(file);
    return viewProvider != null && viewProvider.hasLanguage(JavaLanguage.INSTANCE);
  }
@Override
  public boolean contains(@NotNull VirtualFile file)