public void addInjectedLanguageBlockWrapper(final List<? super Block> result, final ASTNode injectedNode,
                                              final Indent indent, int offset, @Nullable TextRange range) {
    if (isEmptyRange(injectedNode, range)) {
      return;
    }

    final PsiElement childPsi = injectedNode.getPsi();
    final Language childLanguage = childPsi.getLanguage();
    final FormattingModelBuilder builder = LanguageFormatting.INSTANCE.forContext(childLanguage, childPsi);
    LOG.assertTrue(builder != null);
    final FormattingModel childModel = builder.createModel(FormattingContext.create(childPsi, getSettings()));
    Block original = childModel.getRootBlock();

    if (original.isLeaf() && !injectedNode.getText().trim().isEmpty() || !original.getSubBlocks().isEmpty()) {
      result.add(createInjectedBlock(injectedNode, original, indent, offset, range, childLanguage));
    }
  }
public void addInjectedLanguageBlockWrapper(final List<? super Block> result, final ASTNode injectedNode,
                                              final Indent indent, int offset, @Nullable TextRange range)