List<PsiElement> (@Nullable Object node) { Object o = getValueFromNode(node); if (o instanceof PackageElement) { PsiPackage aPackage = ((PackageElement)o).getPackage(); return ContainerUtil.createMaybeSingletonList(aPackage.isValid() ? aPackage : null); } return super.getElementsFromNode(node); }