void () { JavaEditablePostfixTemplate template = new JavaEditablePostfixTemplate("myId", "myKey", "", "", Collections.emptySet(), LanguageLevel.JDK_1_8, true, PROVIDER); assertTrue(reloadJavaTemplate(template).isUseTopmostExpression()); template = new JavaEditablePostfixTemplate("myId", "myKey", "", "", Collections.emptySet(), LanguageLevel.JDK_1_8, false, PROVIDER); assertFalse(reloadJavaTemplate(template).isUseTopmostExpression()); }