List<DartNamedElementNode> selectedElements = Collections.emptyList();
if (ApplicationManager.getApplication().isUnitTestMode()) {
selectedElements = ContainerUtil.map(candidates, new Function<DartComponent, DartNamedElementNode>() {
@Override
public DartNamedElementNode fun(DartComponent namedComponent) {
return new DartNamedElementNode(namedComponent);
}
});
}
else if (!candidates.isEmpty()) {
final MemberChooser<DartNamedElementNode> chooser =