@Override
public void invoke(@NotNull final Project project, final Editor editor, PsiFile file) throws IncorrectOperationException {
if (candidates.size() > 1) {
NavigationUtil.getPsiElementPopup(
candidates.toArray(new PsiElement[candidates.size()]),
new DefaultPsiElementCellRenderer(),
HaxeBundle.message("choose.class.to.import.title"),
new PsiElementProcessor<PsiElement>() {
public boolean execute(@NotNull final PsiElement element) {
CommandProcessor.getInstance().executeCommand(
project,