void (@NotNull Project project, @NotNull PsiElement keywordElement, @NotNull ModPsiUpdater updater) { final PsiStatement statement = PsiTreeUtil.getParentOfType(keywordElement, PsiStatement.class); if (statement == null) { return; } deleteUnnecessaryStatement(statement); }