PsiDocTag (PsiParameter parameter) { if (!myDoCorrectJavaDoc) return null; if (parameter == null) return null; final String name = parameter.getName(); final PsiDocTag[] paramTags = myDocComment.findTagsByName("param"); for (final PsiDocTag paramTag : paramTags) { final PsiElement[] dataElements = paramTag.getDataElements(); if (dataElements.length > 0 && dataElements[0].getText().equals(name)) { return paramTag; } } return null; }