boolean (@NotNull File file) { String path = file.getPath(); if (FileUtil.pathsEqual(path, ourPathToKeep.toString())) return true; for (String pathToKeep : myPathsToKeep) { if (FileUtil.pathsEqual(path, pathToKeep)) return true; } return false; }