List<PathMapping> (final @Nullable List<? extends PathMapping> mappings) { List<PathMapping> result = new ArrayList<>(); if (mappings != null) { for (PathMapping m : mappings) { if (m != null && !isAnyEmpty(m.getLocalRoot(), m.getRemoteRoot())) { result.add(m); } } } return result; }