boolean (final CompletionType type) { final CodeInsightSettings settings = CodeInsightSettings.getInstance(); if (type == CompletionType.SMART) { return settings.AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION; } return settings.AUTOCOMPLETE_ON_CODE_COMPLETION; }