boolean (@NotNull PsiParameter parameter) { PsiElement scope = parameter.getDeclarationScope(); if (!(scope instanceof PsiMethod)) { return false; } PsiCodeBlock body = ((PsiMethod)scope).getBody(); if (body == null) return false; if (!myIsFix && !VariableAccessUtils.variableIsUsed(parameter, body) && isUnusedSymbolInspectionEnabled(body)) { // for unused parameter there will be a separate quick fix return false; } final PsiType type = getSubstitutedType(parameter); final PsiClass targetClass = PsiTreeUtil.getParentOfType(parameter, PsiClass.class); return FieldFromParameterUtils.isAvailable(parameter, type, targetClass, false) && parameter.getLanguage().isKindOf(JavaLanguage.INSTANCE); }