void (@NotNull PyImportElement node) { final PyStatement statement = node.getContainingImportStatement(); if (!(statement instanceof PyFromImportStatement)) return; final PyReferenceExpression importReferenceExpression = node.getImportReferenceExpression(); final PyReferenceExpression importSource = ((PyFromImportStatement)statement).getImportSource(); if (importReferenceExpression != null && importSource != null && !isImportFromTheSamePackage(importSource)) { checkReference(importReferenceExpression, importSource); } }