void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement element = descriptor.getStartElement().getParent(); if (element instanceof PsiVariable variable) { final PsiType type = getSuggestedType(variable); if (type != null) { var handler = CommonJavaRefactoringUtil.getRefactoringSupport().getChangeTypeSignatureHandler(); handler.runHighlightingTypeMigrationSilently(project, null, PsiSearchHelper.getInstance(project).getUseScope(variable), variable, type); } } }