public class ErlangTypedHandler extends TypedHandlerDelegate {
@Override
public Result checkAutoPopup(char c, Project project, Editor editor, PsiFile file) {
if (!(file instanceof ErlangFile)) return super.checkAutoPopup(c, project, editor, file);
AutoPopupController autoPopupController = AutoPopupController.getInstance(project);
if (c == ':') {
autoPopupController.autoPopupMemberLookup(editor, null);
return Result.STOP;
}
return super.checkAutoPopup(c, project, editor, file);
}