boolean (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { final PsiVariable myVariable = (PsiVariable)startElement; PsiType type = getReturnType(); return myVariable.getTypeElement() != null && BaseIntentionAction.canModify(myVariable) && type != null && type.isValid() && !LambdaUtil.notInferredType(type) && !TypeConversionUtil.isNullType(type) && !TypeConversionUtil.isVoidType(type); }