boolean (GrStatement statement) { if (statement == null) { return false; } if (statement instanceof GrBlockStatement blockStatement) { final GrOpenBlock codeBlock = blockStatement.getBlock(); final GrStatement[] codeBlockStatements = codeBlock.getStatements(); for (GrStatement codeBlockStatement : codeBlockStatements) { if (!statementIsEmpty(codeBlockStatement)) { return false; } } return true; } return false; }