@Override
  public String getPackageName(@NotNull VirtualFile dir) {
    checkAvailability();
    return myWorkspaceFileIndex.getPackageName(dir);
  }
@Override
  public String getPackageName(@NotNull VirtualFile dir)