int (@NotNull PsiFile file, int offset) { FormattingModel model = createFormattingModel(file, offset); return model == null ? -1 : FormatterEx.getInstance().getMinLineFeedsBeforeBlockAtOffset(model, offset); }