Element (@NotNull MavenProject mavenProject) { Element mavenPackagingPluginConfiguration = null; final String packaging = mavenProject.getPackaging(); if (StringUtil.isEmpty(packaging)) { mavenPackagingPluginConfiguration = mavenProject.getPluginConfiguration("org.apache.maven.plugins", "maven-jar-plugin"); } else { final String pluginArtifactId = PACKAGING_PLUGINS.get(StringUtil.toLowerCase(packaging)); if (pluginArtifactId != null) { mavenPackagingPluginConfiguration = mavenProject.getPluginConfiguration("org.apache.maven.plugins", pluginArtifactId); } } return mavenPackagingPluginConfiguration; }