Collection<String> (@NotNull ConvertContext context, @NotNull MavenProject project) { Set<String> scopes = project.getSupportedDependencyScopes(); boolean isDependencyManagement = context.getInvocationElement().getParentOfType(MavenDomDependencyManagement.class, false) != null; if (isDependencyManagement) scopes.add(MavenConstants.SCOPE_IMPORT); return scopes; }