boolean (@NotNull VirtualFile file, @NotNull Predicate<? super VirtualFile> predicate) { if (file.isDirectory()) { for (VirtualFile child : file.getChildren()) { if (predicate.test(child)) return true; } } return false; }