void (final PsiMethod scopeMethod, PsiType type, boolean tailTypeSemicolon) { if (type != null) { Supplier<String> expectedName; if (PropertyUtilBase.isSimplePropertyAccessor(scopeMethod)) { expectedName = () -> PropertyUtilBase.getPropertyName(scopeMethod); } else { expectedName = ExpectedTypeInfoImpl.NULL; } myResult.add(createInfoImpl(type, ExpectedTypeInfo.TYPE_OR_SUBTYPE, type, tailTypeSemicolon ? TailTypes.semicolonType() : TailTypes.noneType(), null, expectedName)); } }