List<MavenResourcesTarget> (@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; }