List<T> (@NotNull JpsModel model) { Collection<JpsArtifact> artifacts = JpsBuilderArtifactService.getInstance().getArtifacts(model, true); List<T> targets = new ArrayList<>(artifacts.size()); for (JpsArtifact artifact : artifacts) { if (!StringUtil.isEmpty(artifact.getOutputPath())) { targets.add(createArtifactBasedTarget(artifact)); } } return targets; }