@Nullable
  public static JpsGradleArtifactExtension getArtifactExtension(@NotNull JpsArtifact artifact) {
    return artifact.getContainer().getChild(JpsGradleArtifactExtensionImpl.ROLE);
  }
@Nullable
  public static JpsGradleArtifactExtension getArtifactExtension(@NotNull JpsArtifact artifact)