void (@NotNull CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) { PsiElement current = parameters.getPosition(); Language language = parameters.getOriginalFile().getLanguage(); boolean isSyntaxSupported = language.isKindOf(IgnoreLanguage.INSTANCE) && ((IgnoreLanguage)language).isSyntaxSupported(); if (isSyntaxSupported && current.getParent() instanceof IgnoreSyntax && current.getPrevSibling() != null) { result.addAllElements(SYNTAX_ELEMENTS); } }