boolean (@NotNull VirtualFile file, boolean includeSources, boolean includeBinaries) { if (includeSources && VfsUtilCore.isUnder(file, sourceRoots)) return true; if (includeBinaries && VfsUtilCore.isUnder(file, binaryRoots)) return true; return false; }