@Nullable
  private static FileBaseMatch compareNames(final String beforeName, final VirtualFile file) {
    if (beforeName == null) {
      return null;
    }
    String[] parts = getPathParts(beforeName);
    return compareNamesImpl(parts, file.getParent(), parts.length - 2);
  }
@Nullable
  private static FileBaseMatch compareNames(final String beforeName, final VirtualFile file)