@NotNull
  private static List<String> getConvertedPatterns(@NotNull CodeStyleSettings settings) {
    return settings.getExcludedFiles().getDescriptors(NamedScopeDescriptor.NAMED_SCOPE_TYPE).stream()
                   .map(descriptor -> NamedScopeToGlobConverter.convert((NamedScopeDescriptor)descriptor))
                   .filter(descriptor -> descriptor != null)
                   .map(descriptor -> descriptor.getPattern())
                   .collect(Collectors.toList());
  }
@NotNull
  private static List<String> getConvertedPatterns(@NotNull CodeStyleSettings settings)