FormattingModel (@NotNull FormattingContext formattingContext) { if (formattingContext.getFormattingMode() == FormattingMode.REFORMAT && ExternalFormatProcessor.useExternalFormatter(formattingContext.getContainingFile()) || myDefaultBuilder == null) { return new DummyFormattingModel(formattingContext.getPsiElement()); } return myDefaultBuilder.createModel(formattingContext); }