} else if (selected instanceof JavaElement) {
javaElements.add(selected);
}
}
if (reqParent != null && javaElements.size() > 0) {
return new CreateRequirementsFromJavaModelCommand(javaElements, reqParent, recursive);
}
return UnexecutableCommand.INSTANCE;
}