public static @NotNull File getFile(@NotNull String path, @Nullable String currentDirectory) {
    File file = new File(path);
    if (!file.isAbsolute() && currentDirectory != null) {
      file = new File(currentDirectory, path);
    }
    return file;
  }
public static @NotNull File getFile(@NotNull String path, @Nullable String currentDirectory)