List<String> (@NotNull Project project, @NotNull Collection<? extends Change> changes) { VirtualFile baseDir = getBasePathAsVirtualFile(project); return baseDir == null ? Collections.emptyList() : changes.stream() .map(change -> relativePath(baseDir, change)) .filter(Objects::nonNull) .map(s -> "/" + s) .collect(Collectors.toList()); }