FileFilter () { final JpsProject project = getTarget().getModule().getProject(); final JpsCompilerExcludes excludes = JpsJavaExtensionService.getInstance().getCompilerConfiguration(project).getCompilerExcludes(); return file -> !excludes.isExcluded(file) && myFilterForExcludedPatterns.accept(file); }