String (final File... baseDirs) { return StringUtil.join(myLogLines, s -> { for (File dir : baseDirs) { if (dir != null) { String path = FileUtil.toSystemIndependentName(dir.getAbsolutePath()) + "/"; if (s.startsWith(path)) { return s.substring(path.length()); } } } return s; }, "\n"); }