@NotNull
  public static VirtualFile getLocalFile(@NotNull VirtualFile libFile) {
    VirtualFile local = getLocalFor(libFile);
    if (local != null) {
      return local;
    }
    return libFile;
  }
@NotNull
  public static VirtualFile getLocalFile(@NotNull VirtualFile libFile)