void () { List<String> notNulls = NullableNotNullManager.getInstance(getProject()).getNotNulls(); assertTrue(notNulls.contains(LombokClassNames.NON_NULL)); PsiClass clazz = myFixture.addClass(""" import lombok.NonNull; public class NonNullTest { @NonNull private String test(@NonNull Integer param) { return String.valueOf(param.hashCode()); }}"""); assertEquals(NOT_NULL, DfaPsiUtil.getTypeNullability(clazz.getMethods()[0].getReturnType())); assertEquals(NOT_NULL, DfaPsiUtil.getTypeNullability(clazz.getMethods()[0].getParameterList().getParameter(0).getType())); }