boolean (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { final PsiMethod myMethod = (PsiMethod)startElement; if (!BaseIntentionAction.canModify(myMethod) || myParameterType == null || TypeConversionUtil.isNullType(myParameterType)) { return false; } PsiParameter parameter = myMethod.getParameterList().getParameter(myIndex); return parameter != null && !Comparing.equal(myParameterType, parameter.getType()); }