List<PsiStatement> (@Nullable PsiStatement statement) { if(statement == null) return Collections.emptyList(); PsiBlockStatement blockStatement = tryCast(statement, PsiBlockStatement.class); if(blockStatement == null) return Collections.singletonList(statement); return List.of(blockStatement.getCodeBlock().getStatements()); }