boolean (File toDir, Map<String, ValidationResult.Option> options) { File file = getFile(toDir); ValidationResult.Option option = options.get(myPath); if (option == ValidationResult.Option.KEEP || option == ValidationResult.Option.IGNORE) return false; if (option == ValidationResult.Option.KILL_PROCESS) { NativeFileManager.getProcessesUsing(file).forEach(p -> p.terminate()); } return doShouldApply(toDir); }