boolean (PyRaiseStatement node, LanguageLevel versionToProcess) { final PyExpression[] expressions = node.getExpressions(); if (expressions.length > 0) { if (expressions.length < 2) { return false; } if (versionToProcess.isPython2()) { PsiElement element = expressions[0].getNextSibling(); while (element instanceof PsiWhiteSpace) { element = element.getNextSibling(); } if (element != null && element.getNode().getElementType() == PyTokenTypes.FROM_KEYWORD) { return true; } } } return false; }