int (@NotNull PsiFile file, int offset, FormattingMode mode) { final Integer result = new CodeStyleManagerRunnable<Integer>(this, mode) { @Override protected Integer doPerform(int offset, TextRange range) { return FormatterEx.getInstanceEx().adjustLineIndent(myModel, mySettings, myIndentOptions, offset, mySignificantRange); } @Override protected Integer computeValueInsidePlainComment(PsiFile file, int offset, Integer defaultValue) { return CharArrayUtil.shiftForward(file.getViewProvider().getContents(), offset, " \t"); } @Override protected Integer adjustResultForInjected(Integer result, DocumentWindow documentWindow) { return result != null ? documentWindow.hostToInjected(result) : null; } }.perform(file, offset, null, null); return result != null ? result : offset; }