@Override
  protected boolean isAvailableImpl(int offset) {
    final PsiNameValuePair call = getNameValuePair();
    if (call == null || !call.isValid()) return false;
    String name = call.getName();
    if (name == null) name = PsiAnnotation.DEFAULT_REFERENCED_METHOD_NAME;

    if (!PsiNameHelper.getInstance(call.getProject()).isIdentifier(name)) return false;
    if (getAnnotationValueType(call.getValue()) == null) return false;
    setText(JavaBundle.message("intention.create.annotation.method.from.usage", name));
    return true;
  }
@Override
  protected boolean isAvailableImpl(int offset)