void (@NotNull PsiStatement statement) { super.visitStatement(statement); if (!previousWasGuardClause) { return; } if (statement instanceof PsiDeclarationStatement) { return; } final PsiElement parent = statement.getParent(); if (!(parent instanceof PsiCodeBlock)) { return; } final PsiElement grandParent = parent.getParent(); if (!(grandParent instanceof PsiMethod)) { return; } previousWasGuardClause = isGuardClause(statement); }