void (final PsiFile file, final int lineNum, final String expected) { final int offset = PsiDocumentManager.getInstance(getProject()).getDocument(file).getLineEndOffset(lineNum); final String actial = CodeStyleManager.getInstance(getProject()).getLineIndent(file, offset); assertEquals(expected, actial); }