void (String @NotNull ... patterns) { CodeStyleSettings settings = CodeStyle.getSettings(getProject()); for (String pattern : patterns) { settings.getExcludedFiles().addDescriptor(new GlobPatternDescriptor(pattern)); } }