void (PyImportElement @NotNull [] importElements) { for (PyImportElement element : importElements) { PyReferenceExpression ref = element.getImportReferenceExpression(); if (ref != null) { String s = ref.getReferencedName(); if (s != null) myNamesAlready.add(s); } } }