List<MavenPlugin> (Model mavenModel) { List<MavenPlugin> result = new ArrayList<>(); Build build = mavenModel.getBuild(); if (build != null) { List<Plugin> plugins = build.getPlugins(); if (plugins != null) { for (Plugin each : plugins) { result.add(convertPlugin(each)); } } } return result; }