void (@NotNull PsiJavaCodeReferenceElement reference) { if (myRole1 == ChildRole.REFERENCE_PARAMETER_LIST && myRole2 == ChildRole.REFERENCE_NAME) { createSpaceInCode(myJavaSettings.SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENT); } else if (myRole2 == ChildRole.REFERENCE_PARAMETER_LIST) { createSpaceInCode(mySettings.SPACE_BEFORE_TYPE_PARAMETER_LIST); } else if (myRole2 == ChildRole.DOT || myRole1 == ChildRole.DOT) { createSpaceInCode(false); } else if (myType1 == JavaElementType.ANNOTATION) { createSpaceInCode(true); } }