void (FoldRegion region1, FoldRegion region2, PsiMethod method) { assertEquals(region1.getStartOffset(), method.getParameterList().getTextRange().getEndOffset()); assertEquals(region1.getEndOffset(), method.getBody().getStatements()[0].getTextRange().getStartOffset()); assertEquals(" { ", region1.getPlaceholderText()); assertEquals(region2.getStartOffset(), method.getBody().getStatements()[0].getTextRange().getEndOffset()); assertEquals(region2.getEndOffset(), method.getTextRange().getEndOffset()); assertEquals(" }", region2.getPlaceholderText()); assertEquals(region1.getGroup(), region2.getGroup()); }