boolean (@NotNull PsiElement element) { final PsiElementPattern.Capture<PsiElement> capture = psiElement().afterLeafSkipping(psiElement().whitespace(), psiElement().withElementType(PyTokenTypes.DOT)); return capture.accepts(element, new ProcessingContext()); }