public void registerCompletionInfo(@NotNull String headToken, @NotNull String[] completionParts,
                                       @NotNull String tailToken, @Nullable String tailEndToken) {
        this.registerBlockCompletionInfo(headToken, completionParts, tailToken, tailEndToken, headToken.equalsIgnoreCase(tailEndToken) ? tailToken : null);
    }
Register block for autoedit containing token at the begin, middle token and one or two tokens at the end (e.g. IF .. THEN .. END IF).
@param headToken is a beginning token of the block.
@param completionParts is an array of strings which should be inserted on autoedit.
Completion part can be a String,
SQLBlockCompletions.ONE_INDENT_COMPLETION_PART - indentation,
SQLBlockCompletions.NEW_LINE_COMPLETION_PART - new line.
@param tailToken - first token of the block end.
@param tailEndToken - last token of the block end.
plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/indent/SQLBlockCompletionsCollection.java