@Nullable
  private static JpsGradleArtifactExtension getArtifactExtension(JpsArtifact artifact, ArtifactBuildPhase buildPhase) {
    if (buildPhase == ArtifactBuildPhase.PRE_PROCESSING) {
      return JpsGradleExtensionService.getArtifactExtension(artifact);
    }
    return null;
  }
@Nullable
  private static JpsGradleArtifactExtension getArtifactExtension(JpsArtifact artifact, ArtifactBuildPhase buildPhase)