boolean (@NotNull String name) { return !name.equals("gen") // https://youtrack.jetbrains.com/issue/IDEA-175404 && !name.equals("reports") // no idea what this is && !name.equals("android") // no 'android' repo on agents in some builds && canContainSources(name) && !name.endsWith("system") && !name.endsWith("config") // temporary stuff from tests or debug IDE && !name.equals("build") // the dir is too deep and has almost no sources, descending there is a waste of time ; }