boolean (@NotNull VirtualFile file) { return containsChild(file, child -> { if (!child.isDirectory()) { String name = child.getName(); if ("settings.gradle".equals(name) || "settings.gradle.kts".equals(name) || "build.gradle".equals(name) || "build.gradle.kts".equals(name)) { return true; } } return false; }); }