Source:
<code>public void annotate(@NotNull PsiElement o, @NotNull AnnotationHolder holder) { if (o instanceof GoImportSpec) { if (((GoImportSpec)o).getDot() != null) { o.putUserData(GoReference.IMPORT_USERS, ContainerUtil.<PsiElement>newArrayListWithCapacity(0)); } } else if (o instanceof GoLiteral) { setHighlighting(o, holder, GoSyntaxHighlightingColors.NUMBER); <START> } <END> else if (o instanceof GoReferenceExpression) { PsiElement resolve = ((GoReferenceExpression)o).getReference().resolve(); highlightRefIfNeeded((GoReferenceExpression)o, resolve, holder); } else if (o instanceof GoTypeReferenceExpression) { PsiElement resolve = ((GoTypeReferenceExpression)o).getReference().resolve(); highlightRefIfNeeded((GoTypeReferenceExpression)o, resolve, holder); } else if (o instanceof GoTypeSpec) { setHighlighting(((GoTypeSpec)o).getIdentifier(), holder, getColor((GoTypeSpec)o)); } else if (o instanceof GoConstDefinition) { setHighlighting(o, holder, getColor((GoConstDefinition)o)); } else if (o instanceof GoVarDefinition) { setHighlighting(o, holder, getColor((GoVarDefinition)o)); } else if (o instanceof GoFieldDefinition) { setHighlighting(o, holder, getColor((GoFieldDefinition)o)); } else if (o instanceof GoParamDefinition) { setHighlighting(o, holder, getColor((GoParamDefinition)o)); } else if (o instanceof GoReceiver) { setHighlighting(o, holder, getColor((GoReceiver)o)); } else if (o instanceof GoNamedSignatureOwner) { PsiElement identifier = ((GoNamedSignatureOwner)o).getIdentifier(); if (identifier != null) { setHighlighting(identifier, holder, getColor((GoNamedSignatureOwner)o)); } } }</code><technical_language>grammar (go.bnf): Literal ::= int | float | floati | decimali | hex | oct | imaginary | rune | StringLiteral | char So, need check a hex oct, a char a rune</technical_language>

Target:
public void annotate(@NotNull PsiElement o, @NotNull AnnotationHolder holder) { if (o instanceof GoImportSpec) { if (((GoImportSpec)o).getDot() != null) { o.putUserData(GoReference.IMPORT_USERS, ContainerUtil.<PsiElement>newArrayListWithCapacity(0)); } } else if (o instanceof GoLiteral) { if (((GoLiteral)o).getHex() != null || ((GoLiteral)o).getOct() != null) { setHighlighting(o, holder, GoSyntaxHighlightingColors.NUMBER); } } else if (o instanceof GoReferenceExpression) { PsiElement resolve = ((GoReferenceExpression)o).getReference().resolve(); highlightRefIfNeeded((GoReferenceExpression)o, resolve, holder); } else if (o instanceof GoTypeReferenceExpression) { PsiElement resolve = ((GoTypeReferenceExpression)o).getReference().resolve(); highlightRefIfNeeded((GoTypeReferenceExpression)o, resolve, holder); } else if (o instanceof GoTypeSpec) { setHighlighting(((GoTypeSpec)o).getIdentifier(), holder, getColor((GoTypeSpec)o)); } else if (o instanceof GoConstDefinition) { setHighlighting(o, holder, getColor((GoConstDefinition)o)); } else if (o instanceof GoVarDefinition) { setHighlighting(o, holder, getColor((GoVarDefinition)o)); } else if (o instanceof GoFieldDefinition) { setHighlighting(o, holder, getColor((GoFieldDefinition)o)); } else if (o instanceof GoParamDefinition) { setHighlighting(o, holder, getColor((GoParamDefinition)o)); } else if (o instanceof GoReceiver) { setHighlighting(o, holder, getColor((GoReceiver)o)); } else if (o instanceof GoNamedSignatureOwner) { PsiElement identifier = ((GoNamedSignatureOwner)o).getIdentifier(); if (identifier != null) { setHighlighting(identifier, holder, getColor((GoNamedSignatureOwner)o)); } } }