void () { final WebEditorOptions options = WebEditorOptions.getInstance(); final boolean oldValue = options.isAutomaticallyInsertRequiredAttributes(); try { options.setAutomaticallyInsertRequiredAttributes(false); doTestCompletion("element-completion-3", "xml"); } finally { options.setAutomaticallyInsertRequiredAttributes(oldValue); } }