boolean (@NotNull String qualifiedName) { String text = getStub().getText(); // text is like '@<qualified_name>[(parameters)]' if (!text.startsWith(qualifiedName, 1)) return false; int endOfQualifiedName = qualifiedName.length() + 1; return text.length() == endOfQualifiedName || text.charAt(endOfQualifiedName) == '('; }