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