void (final @NotNull Project project, final @NotNull ProblemDescriptor descriptor) { PsiElement element = descriptor.getPsiElement(); if (element instanceof PsiExpression expression) { doIntroduce(project, expression); } }