public static PsiStatement @NotNull [] unwrapBlock(@Nullable PsiStatement statement) {
    final PsiBlockStatement block = ObjectUtils.tryCast(statement, PsiBlockStatement.class);
    if (block != null) {
      return block.getCodeBlock().getStatements();
    }
    return statement == null ? PsiStatement.EMPTY_ARRAY : new PsiStatement[]{statement};
  }
public static PsiStatement @NotNull [] unwrapBlock(@Nullable PsiStatement statement)