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