PsiStatement (PsiStatement body) { if (!(body instanceof PsiBlockStatement block)) { return body; } final PsiCodeBlock codeBlock = block.getCodeBlock(); return ControlFlowUtils.getFirstStatementInBlock(codeBlock); }