int (PsiElement[] elements) { for (int i = 0, length = elements.length; i < length; i++) { final PsiElement e = elements[i]; if (e instanceof PsiWhiteSpace) continue; if (e instanceof PsiDocToken && ((PsiDocToken)e).getTokenType() == JavaDocTokenType.DOC_COMMENT_LEADING_ASTERISKS) continue; if (e.textContains('"')) { return i; } } return -1; }