List<Path> (@Nullable String transferData) { if (transferData == null) { return Collections.emptyList(); } List<Path> fileList = new ArrayList<>(); for (String uriString : StringUtil.convertLineSeparators(transferData).split("\n")) { if (Strings.isEmptyOrSpaces(uriString) || uriString.startsWith("#") || !uriString.startsWith("file:/")) { continue; } try { URI uri = new URI(uriString); fileList.add(new File(uri).toPath()); } catch (URISyntaxException ignore) { } } return fileList; }