boolean (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { return myType != null && myWrapper != null && myType.isValid() && BaseIntentionAction.canModify(startElement) && getModifiedExpression(startElement) != null; }