Integer (PsiJavaToken token, JvmAnnotationAttribute attribute) { JvmAnnotationAttributeValue annotationValues = attribute.getAttributeValue(); if (annotationValues instanceof JvmAnnotationArrayValue values) { List<JvmAnnotationAttributeValue> valuesAttr = values.getValues(); String text = token.getText(); JvmAnnotationAttributeValue value = ContainerUtil.find(valuesAttr, v -> { if (v instanceof JvmAnnotationConstantValue) { Object constantValue = ((JvmAnnotationConstantValue)v).getConstantValue(); return constantValue != null && text.equals("\"" + constantValue + "\""); } return false; }); if (value != null) { return valuesAttr.indexOf(value); } } return null; }