boolean (@NotNull TextFieldWithHistory field, @Nullable Balloon balloon, @NotNull String abbreviation, @NotNull CustomTemplateCallback callback) { final boolean correct = ZenCodingTemplate.checkTemplateKey(abbreviation, callback); field.getTextEditor().setBackground(correct ? LightColors.SLIGHTLY_GREEN : LightColors.RED); if (balloon != null && !balloon.isDisposed()) { balloon.revalidate(); } return correct; }