PsiType (@NotNull final PsiArrayType type) { PsiType componentType = type.getComponentType(); PsiType mappedComponent = mapType(componentType); if (mappedComponent == null) return null; if (mappedComponent == componentType) return type; return new PsiArrayType(mappedComponent, type.getAnnotationProvider()); }