void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PyStatement statement = PsiTreeUtil.getParentOfType(descriptor.getPsiElement(), PyStatement.class, false); if (statement != null) { statement.delete(); } }