@Override
  public boolean isSoft(@NotNull DomElement element) {
    DomElement buildElement = element.getParent();
    if (!(buildElement instanceof MavenDomBuild)) {
      return false;
    }

    DomElement mavenProject = buildElement.getParent();
    if (!(mavenProject instanceof MavenDomProjectModel)) {
      return false;
    }

    return "pom".equals(((MavenDomProjectModel)mavenProject).getPackaging().getStringValue());
  }
@Override
  public boolean isSoft(@NotNull DomElement element)