private static boolean isImportedEntity(@NotNull ProjectSystemId owner, @NotNull ExcludeUrlEntity excludeEntity) {
    return excludeEntity.getEntitySource() instanceof JpsImportedEntitySource importedEntitySource
           && owner.getId().equals(importedEntitySource.getExternalSystemId());
  }
private static boolean isImportedEntity(@NotNull ProjectSystemId owner, @NotNull ExcludeUrlEntity excludeEntity)