boolean (PsiElement... elements) { int referenceNumber = 0; while (referenceNumber < elements.length && elements[referenceNumber].getText().isBlank()) { referenceNumber++; } if (SEE_TAG_REFS.contains(elements[referenceNumber].getNode().getElementType())) return true; String text = Stream.of(elements).map(e -> e.getText().trim()).collect(Collectors.joining(" ")).trim(); if (StringUtil.isQuotedString(text) && text.charAt(0) == '"') return true; if (StringUtil.toLowerCase(text).matches("^<a\\s+href=.+")) return true; return false; }