PsiElement (@Nullable PsiElement child) { if (child == null) return null; List<NavBarModelExtension> extensions = NavBarModelExtension.EP_NAME.getExtensionList(); for (int i = extensions.size() - 1; i >= 0; i--) { NavBarModelExtension modelExtension = extensions.get(i); child = modelExtension.adjustElement(child); if (child == null) return null; } return child; }