boolean (PsiElement element) { if (myElement.isQualified()) { return true; } if (element instanceof PyQualifiedExpression && ((PyQualifiedExpression)element).isQualified()) { return true; } return false; }