@NotNull
  @Override
  public List<MavenResourcesTarget> computeAllTargets(@NotNull JpsModel model) {
    final List<MavenResourcesTarget> targets = new ArrayList<>();
    final JpsMavenExtensionService service = JpsMavenExtensionService.getInstance();
    for (JpsModule module : model.getProject().getModules()) {
      if (service.getExtension(module) != null) {
        targets.add(new MavenResourcesTarget(this, module));
      }
    }
    return targets;
  }
@NotNull
  @Override
  public List<MavenResourcesTarget> computeAllTargets(@NotNull JpsModel model)