@Override
  public void checkRootElement(@NotNull CompositePackagingElement<?> rootElement,
                               @NotNull Artifact artifact,
                               @NotNull ArtifactProblemsHolder manager) {
    final Project project = manager.getContext().getProject();
    final Sdk sdk = JavaFxArtifactProperties.getFxCompatibleSdk(artifact, project);
    if (sdk != null && !new File(sdk.getHomePath() + "/lib/ant-javafx.jar").exists()) {
      manager.registerError(JavaFXCommonBundle.message("cant.build.artifact.fx.deploy.is.not.available.in.this.jdk"), "no-fx:deploy");
    }
  }
@Override
  public void checkRootElement(@NotNull CompositePackagingElement<?> rootElement,
                               @NotNull Artifact artifact,
                               @NotNull ArtifactProblemsHolder manager)