@Nullable
  private FileColorConfiguration findConfiguration(@NotNull final VirtualFile colored) {
    Iterator<FileColorConfiguration> iterator = getConfigurations();
    while(iterator.hasNext()) {
      var configuration = iterator.next();
      NamedScope scope = NamedScopesHolder.getScope(myProject, configuration.getScopeName());
      if (scope != null) {
        NamedScopesHolder namedScopesHolder = NamedScopesHolder.getHolder(myProject, configuration.getScopeName(), null);
        PackageSet packageSet = scope.getValue();
        if (packageSet instanceof PackageSetBase && namedScopesHolder != null && ((PackageSetBase)packageSet).contains(colored, myProject, namedScopesHolder)) {
          return configuration;
        }
      }
    }
    return null;
  }
@Nullable
  private FileColorConfiguration findConfiguration(@NotNull final VirtualFile colored)