IntentionAction (@NotNull PsiElement element) { PsiFile file = element.getContainingFile(); if (file == null) return null; ProblemDescriptor descriptor = new ProblemDescriptorBase(element, element, "", null, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, false, null, true, false); return new LocalQuickFixAsIntentionAdapter(new RenameFix(), descriptor); }