void (@NotNull PostfixTemplate template) { PostfixTemplateStorage saveStorage = new PostfixTemplateStorage(); saveStorage.setTemplates(new PyPostfixTemplateProvider(), Collections.singletonList(template)); PostfixTemplateStorage.getInstance().loadState(saveStorage.getState()); }