PsiComment () { for (PsiElement next = getNextSibling(); next != null; next = next.getNextSibling()) { if (next.textContains('\n')) break; if (!(next instanceof PsiWhiteSpace)) { if (",".equals(next.getText())) continue; if (next instanceof PsiComment && PyTypingTypeProvider.getTypeCommentValue(next.getText()) != null) { return (PsiComment)next; } break; } } return null; }