void (final Project project) { final Map<Pattern, Set<Pattern>> excludePatterns = loadPatterns("idea.exclude.patterns"); final Map<Pattern, Set<Pattern>> includePatterns = loadPatterns("idea.include.patterns"); if (excludePatterns.isEmpty() && includePatterns.isEmpty()) return; patchProject(project, excludePatterns, includePatterns); }