boolean (int offset) { final PsiNameValuePair call = getNameValuePair(); if (call == null || !call.isValid()) return false; String name = call.getName(); if (name == null || !PsiNameHelper.getInstance(call.getProject()).isIdentifier(name)) return false; if (getAnnotationValueType(call.getValue()) == null) return false; setText(QuickFixBundle.message("create.method.from.usage.text", name)); return true; }