HintManager.getInstance().showQuestionHint(editor, "Import symbol", range.getStartOffset(), range.getEndOffset(), createAddImportAction(editor));
return true;
}
private QuestionAction createAddImportAction(final Editor editor) {
return new QuestionAction() {
public boolean execute() {
final Module module = DeclarationPosition.getDeclModule(psiFile);
final Project project = module.getProject();
PsiDocumentManager.getInstance(project).commitAllDocuments();
final BaseListPopupStep<String> step = new BaseListPopupStep<String>("Module to import", modules) {