boolean (@NotNull PsiStatement statement) { if (statement instanceof PsiEmptyStatement) return false; if (statement instanceof PsiBlockStatement) { return !((PsiBlockStatement)statement).getCodeBlock().isEmpty(); } return true; }