PsiAnnotation (PsiMethodImpl method) { if (hasExplicitNullability(method)) { return null; } Nullability nullability = JavaSourceInference.inferNullability(method); if (nullability == Nullability.NOT_NULL) { return ProjectBytecodeAnalysis.getInstance(myProject).getNotNullAnnotation(); } if (nullability == Nullability.NULLABLE) { return ProjectBytecodeAnalysis.getInstance(myProject).getNullableAnnotation(); } return null; }