code: private List<Resource> scanForConfigurationResources(final File config, final List<String> profiles) {
          val possibleFiles = getAllPossibleExternalConfigDirFilenames(config, profiles);
          return possibleFiles.stream()
              .filter(File::exists)
              .filter(File::isFile)
              .map(FileSystemResource::new)
              .collect(Collectors.toList());
      }
docs: Get all possible configuration files for config directory that actually exist as files.
  
  @param config   Folder in which to look for files
  @param profiles Profiles that are active
  @return List of files to be processed in order where last one processed overrides others