boolean (final PsiMethod oldTargetMethod, final PsiMethod newTargetMethod) { // the cast may be for the @NotNull which newTargetMethod has whereas the oldTargetMethod doesn't Nullability oldNullability = NullableNotNullManager.getNullability(oldTargetMethod); Nullability newNullability = NullableNotNullManager.getNullability(newTargetMethod); return oldNullability == newNullability; }