@Override
  public boolean contains(@NotNull VirtualFile file) {
    final ProjectFileIndex index = ProjectRootManager.getInstance(getProject()).getFileIndex();
    if (!index.isInLibrary(file)) {
      return false;
    }

    return someChildContainsFile(file, false);
  }
@Override
  public boolean contains(@NotNull VirtualFile file)