TypeAnnotationProvider (PsiAnnotation @NotNull [] annotations) { if (annotations.length == 0) return EMPTY; for (PsiAnnotation annotation : annotations) { Objects.requireNonNull(annotation); } return new Static(annotations); }