@Nullable
  private static VirtualFile getExistingFileOrParent(@NotNull FilePath selectedPath) {
    return ObjectUtils.chooseNotNull(selectedPath.getVirtualFile(), selectedPath.getVirtualFileParent());
  }
@Nullable
  private static VirtualFile getExistingFileOrParent(@NotNull FilePath selectedPath)