void (PsiMethod method, Map<String, Map<String, PsiNameValuePair[]>> annotations) { String methodKey = PsiFormatUtil.getExternalName(method, false, Integer.MAX_VALUE); if (INFERRED_TEST_METHOD.equals(methodKey)) return; if (!EXTERNAL_TEST_METHOD.equals(methodKey)) { PsiAnnotation inferredContractAnnotation = findInferredAnnotation(method, ORG_JETBRAINS_ANNOTATIONS_CONTRACT); if (inferredContractAnnotation != null) { PsiNameValuePair[] attributes = inferredContractAnnotation.getParameterList().getAttributes(); annotate(annotations, method, ORG_JETBRAINS_ANNOTATIONS_CONTRACT, attributes); } } PsiAnnotation inferredNotNullMethodAnnotation = findInferredAnnotation(method, AnnotationUtil.NOT_NULL); if (inferredNotNullMethodAnnotation != null) { annotate(annotations, method, AnnotationUtil.NOT_NULL, PsiNameValuePair.EMPTY_ARRAY); } PsiAnnotation inferredNullableMethodAnnotation = findInferredAnnotation(method, AnnotationUtil.NULLABLE); if (inferredNullableMethodAnnotation != null) { annotate(annotations, method, AnnotationUtil.NULLABLE, PsiNameValuePair.EMPTY_ARRAY); } for (PsiParameter parameter : method.getParameterList().getParameters()) { PsiAnnotation inferredNotNull = findInferredAnnotation(parameter, AnnotationUtil.NOT_NULL); if (inferredNotNull != null) { annotate(annotations, parameter, AnnotationUtil.NOT_NULL, PsiNameValuePair.EMPTY_ARRAY); } PsiAnnotation inferredNullable = findInferredAnnotation(parameter, AnnotationUtil.NULLABLE); if (inferredNullable != null) { annotate(annotations, parameter, AnnotationUtil.NULLABLE, PsiNameValuePair.EMPTY_ARRAY); } } }