public static String[] getAnnotationNames(PsiModifierListOwner psi) {
    List<String> annoNames = new ArrayList<>();
    final PsiModifierList modifierList = psi.getModifierList();
    if (modifierList instanceof GrModifierList) {
      for (GrAnnotation annotation : ((GrModifierList)modifierList).getRawAnnotations()) {
        final String name = annotation.getShortName();
        if (StringUtil.isNotEmpty(name)) {
          annoNames.add(name);
        }
      }
    }
    return ArrayUtilRt.toStringArray(annoNames);
  }
public static String[] getAnnotationNames(PsiModifierListOwner psi)