Bug 322276 NPE raised when specifying positionInList in menus
bundles/org.eclipse.e4.ui.model.workbench/src/org/eclipse/e4/ui/model/internal/ModelUtils.java
if( index >= 0 && list.size() > index ) {
					flag = false;
					list.addAll(index, elements);
				}
			}
			
			
			if( flag ) {
				list.addAll(elements);
			}
			
			return copy;
		} else {
			if( elements.size() >= 1 ) {
				if( elements.size() > 1 ) {
					
					System.err.println("The feature is single valued but a list of values is passed in.");
				}
				MApplicationElement e = elements.get(0);
				eContainer.eSet(feature, e);
				return Collections.singletonList(e);
			}
		}
		
		return Collections.emptyList();
	}
}