PsiDocTag[] (PsiDocComment comment) { if (comment == null) return PsiDocTag.EMPTY_ARRAY; PsiDocTag[] tags1 = comment.findTagsByName("throws"); PsiDocTag[] tags2 = comment.findTagsByName("exception"); return ArrayUtil.mergeArrays(tags1, tags2); }