void (@NotNull PsiTypeElement type) { if (myType1 == JavaElementType.ANNOTATION || myType2 == JavaElementType.ANNOTATION) { createSpaceInCode(true); } else if (myType2 == JavaTokenType.ELLIPSIS || myType2 == JavaTokenType.LBRACKET || myType2 == JavaTokenType.RBRACKET) { createSpaceInCode(false); } else if (type.getType() instanceof PsiDisjunctionType) { createSpaceInCode(mySettings.SPACE_AROUND_BITWISE_OPERATORS); } else { createSpaceInCode(true); } }