boolean (@NotNull CompletionParameters parameters) { ProgressManager.checkCanceled(); if (!parameters.isAutoPopup()) { return false; } PostfixTemplatesSettings settings = PostfixTemplatesSettings.getInstance(); if (!settings.isPostfixTemplatesEnabled() || !settings.isTemplatesCompletionEnabled()) { return false; } return true; }