boolean (GrClosableBlock block) { if (block.hasParametersSection()) return false; final GrStatement[] statements = block.getStatements(); if (statements.length != 1) return false; return statements[0] instanceof GrExpression || statements[0] instanceof GrReturnStatement; }