@Override
  public @NotNull List<JPackageBuildTask> createArtifactBuildTasks(@NotNull JpsArtifact artifact, @NotNull ArtifactBuildPhase buildPhase) {
    if (buildPhase != ArtifactBuildPhase.POST_PROCESSING || !(artifact.getArtifactType() instanceof JPackageJpsArtifactType)) {
      return Collections.emptyList();
    }
    final JpsElement properties = artifact.getProperties();
    if (!(properties instanceof JPackageArtifactProperties)) {
      return Collections.emptyList();
    }
    return Collections.singletonList(new JPackageBuildTask(artifact));
  }
@Override
  public @NotNull List<JPackageBuildTask> createArtifactBuildTasks(@NotNull JpsArtifact artifact, @NotNull ArtifactBuildPhase buildPhase)